Monthly Sales Forecast with Seasonality and Trend - EXCEL regression with dummy variables

  Рет қаралды 59,686

Data Analytics Central

Data Analytics Central

Күн бұрын

Пікірлер: 97
@JohnKamauNjenga
@JohnKamauNjenga Жыл бұрын
Simple and elegantly presented. Was working on a forecast and other descriptions online were abhorrent to say least. The error range was HUGE, but thanks to you my standard error reduced to 2%. Asante Sana!!!🤗
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Dear John, thank you very much for the appreciation!
@Tiramisu2024
@Tiramisu2024 9 ай бұрын
The best lecture, Thank you so much!
@Data.Analytics.Central
@Data.Analytics.Central 9 ай бұрын
Thanks a lot the kind feedback!
@nairajbudnarine4728
@nairajbudnarine4728 Ай бұрын
Extremely helpful video. Thank you very much!
@Data.Analytics.Central
@Data.Analytics.Central Ай бұрын
@@nairajbudnarine4728 Thanks a lot for the appreciation!
@sisayzewde1728
@sisayzewde1728 Жыл бұрын
I think residual should be zero or close to zero! right? but in your case it is too much; so, can we say your forecast is good?
@chilarmah
@chilarmah Жыл бұрын
Great work! Solved a problem I have been working on for days.
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Thank you Hussain for the appreciation!
@EricD_192
@EricD_192 2 жыл бұрын
Great content explained in detail! Amazing!
@Data.Analytics.Central
@Data.Analytics.Central 2 жыл бұрын
Dear Erick, thank you very much for your feedback!
@jellieannestoya6849
@jellieannestoya6849 Ай бұрын
Thanks a lot . This means a lot . God bless you !
@Data.Analytics.Central
@Data.Analytics.Central Ай бұрын
Many thanks for your appreciation! 🙏
@roshandhumal1193
@roshandhumal1193 11 ай бұрын
Sir, could you please explain us why we have to lock 🔒 intercept, please explain and please explain me about p value.
@Data.Analytics.Central
@Data.Analytics.Central 11 ай бұрын
Hello, we lock the Intercept because in the equation the intercept is only one, while the coefficients are multiple. Please read here about the p value: www.investopedia.com/terms/p/p-value.asp
@adityavedam1174
@adityavedam1174 6 ай бұрын
Could you share the data file for Practice please ?
@davidjosevarelagarcia7011
@davidjosevarelagarcia7011 Жыл бұрын
Great video, is very usefull, thanks. i have a question, why dont use december when you transpose the months?
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hi David, thanks for the appreciation! We do not use December because the 12-th category is captured by the intercept, and is specified when all the 11 dummy variables are all set to zero. This is the general rule: one variable less then the number of categories. If you have just 2 categories (yes and no) you put just one dummy (yes).
@emilytran84
@emilytran84 8 ай бұрын
Thank you for your great video! Do you think this work correctly with 12 months data historical and some month value = 0 as well ? I look forward to hearing your advices. Then how can we apply for multi sku products.
@emilytran84
@emilytran84 8 ай бұрын
Hello, I look forward to hearing from you :)
@sacca9156
@sacca9156 Жыл бұрын
Hello Sir Where can I get the Excel worksheet to follow your presentation. Thanks
@sayednab
@sayednab 2 жыл бұрын
would you mind explain, why to exclude the last month on your dummy variable?
@Data.Analytics.Central
@Data.Analytics.Central 2 жыл бұрын
Hi Nab, thanks for the question. That is because the 12-th category is captured by the intercept, and is specified when all the 11 dummy variables are all set to zero. This is the general rule: one variable less then the number of categories. If you have just 2 categories (yes and no) you put just one dummy (yes).
@sayednab
@sayednab 2 жыл бұрын
@@Data.Analytics.Central I see. It makes sense. thanks for the explanation sir. could we use this model for stock price as well?
@Data.Analytics.Central
@Data.Analytics.Central 2 жыл бұрын
@@sayednab It is available for any pattern that has seasonality.
@mariusalexandrugogorita
@mariusalexandrugogorita 9 ай бұрын
Best video ever! Thank you very much!
@Data.Analytics.Central
@Data.Analytics.Central 9 ай бұрын
Thanks a lot for the appreciation! 🤝
@shamlalshalu8606
@shamlalshalu8606 2 ай бұрын
May I get this excel file to practice
@PrakharBharas
@PrakharBharas 8 ай бұрын
If I have to do the same thing but on a day level How can I achieved that?
@ahuhokay
@ahuhokay 10 ай бұрын
u are the best bro thank you for the help🙏
@Data.Analytics.Central
@Data.Analytics.Central 9 ай бұрын
Thanks a lot the kind feedback!
@johnshepherd007
@johnshepherd007 6 ай бұрын
thank you very much, this really helped me a lot!
@Data.Analytics.Central
@Data.Analytics.Central 6 ай бұрын
Glad it helped!
@merjenorazmammedova6516
@merjenorazmammedova6516 Жыл бұрын
Thank you for the video, it is really helpful!
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Thank you Merjen for the appreciation. I am glad you have found it useful!
@aapriyanka8323
@aapriyanka8323 Жыл бұрын
Excellent sir. Can we use the same process for 5 year forecast. Please do reply sir
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Yes, for sure. If you have monthly seasonality
@EkundayoOnifade
@EkundayoOnifade 8 ай бұрын
Thanks for the video was very useful.
@Data.Analytics.Central
@Data.Analytics.Central 8 ай бұрын
Thanks a lot for the appreciation! 🤝
@auliaramadani461
@auliaramadani461 2 ай бұрын
what if the x variable is more than 1?
@sisayzewde1728
@sisayzewde1728 Жыл бұрын
and also, why you used three years data? what will be wrong if I use two- or four-years data?
@marcelporcescu4675
@marcelporcescu4675 6 ай бұрын
But how can we do daily. I tried but it show only 16 variable maximum, but we have 30 days
@kiamarieamedao1398
@kiamarieamedao1398 Жыл бұрын
Hello! Don't know what I did wrong but when I tried to use the Regression tool in Excel's pack, it said "The number of rows and columns in X range cannot be the same."
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hello, these can be the causes: Case 2: The number of rows is less than the number of x-columns It is not statistically valid for the number of rows to be less than the number of x (variable) columns. The number of rows of data must be larger than the number of columns of data (x-columns plus y-columns). Case 3: You specify a zero constant Do not specify a zero constant (b=0) in the function.
@MichaGouszka
@MichaGouszka 2 жыл бұрын
Thank you for great content! What if we would like to add another variable - i.e., a change in product prices (let's assume cyclical price increases, as well as occasional promotions, for example, for a month of time)? How would your model then need to be modified?
@Data.Analytics.Central
@Data.Analytics.Central 2 жыл бұрын
Hi Michal, thank you for the question! If you have a one-off event, such as a price promotion, that you want to include in your Holt-Winters exponential smoothing model, there are a few different approaches you can take: 1. Include the event as a predictor in the model: If the event has a clear effect on the time series being forecasted, you can add it as an additional predictor in the model. For example, if you are forecasting sales and you have data on the price of the product, you can add a binary predictor to the model to indicate whether the promotion is occurring in a given month. 2. Adjust the trend component to account for the event: If the event has a more complex effect on the time series, you may need to adjust the trend component of the model to take it into account. For example, if the promotion is expected to have a significant impact on sales, you could adjust the trend component to reflect this. 3. Incorporate the event into the seasonality component: If the event has a seasonal effect on the time series, you can incorporate it into the seasonality component of the model. For example, if the promotion is expected to have a particularly strong impact on sales in a particular month, you could adjust the seasonality component for that month to reflect this. I hope this helps!
@HessaM-bc6tn
@HessaM-bc6tn Жыл бұрын
This’s really useful thank you! Could you please do a tutorial on that?
@Mavis_1991
@Mavis_1991 Жыл бұрын
When I used the Regression function, the numbers in the P-Value is #NUM! Any idea why?
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hello, please check these: support.microsoft.com/en-us/office/how-to-correct-a-num-error-f5193bfc-4400-43f4-88c4-8e1dcca0428b and these: The "NUM!" error in regression analysis usually occurs when there is a problem with the data in the cells that are being used for the analysis. This error message indicates that Excel is unable to perform the calculation because it is encountering a value that is not a number. There are a few reasons why you might be seeing this error message in your regression analysis. One possibility is that there are blank cells or cells with text in the range of data that you are using for the analysis. Another possibility is that there are cells with errors, such as #DIV/0! or #VALUE!, in the range of data. To fix this issue, you can try the following steps: Check the range of data that you are using for the analysis and make sure that there are no blank cells or cells with text in the range. Check for any cells with errors in the range of data and correct them if necessary. If you have deleted some fields of data, make sure that you have not accidentally deleted any cells that are being used in the analysis. Check the formatting of the cells in the range of data and make sure that they are all formatted as numbers. If none of the above steps work, try copying the data to a new worksheet and performing the analysis again.
@Mavis_1991
@Mavis_1991 Жыл бұрын
@@Data.Analytics.Central I still get #NUM! on my P-values.
@roshandhumal1193
@roshandhumal1193 Жыл бұрын
Sir what If we have Jan to March instead of Jan to Dev Because of I have value from Jan to March and when I am doing the method the out is not showing right could you please give me a hint
@Data.Analytics.Central
@Data.Analytics.Central 9 ай бұрын
Hello, I hope you follow the rule: one variable less then the number of categories, so in your case of 3 months you use 2 variables
@nikomou3426
@nikomou3426 Жыл бұрын
so "t" is for trend and "jan" thru "nov" is for seasonality. am i correct
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Exactly!
@gjknm
@gjknm 3 ай бұрын
Hi, Kindly share the csv file. Thank you
@Seftehandle
@Seftehandle Жыл бұрын
P value error #num and some very low coefficients for significance f 0.8465 f 0.56 p greater than 0.05. please do similar videos on different. Stat methods
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hi Tina, thanks for watching the video!
@catalin.ardeleanu
@catalin.ardeleanu 2 жыл бұрын
interesting example. Science based :) What do you think about latest forecast functions included in the "pack" =FORECAST.ETS.SEASONALITY()?
@Data.Analytics.Central
@Data.Analytics.Central 2 жыл бұрын
Dear Catalin, Thank you for the appreciation! We can arrive at the same results as the ones I did in the video by simply using the Excel function FORECAST.ETS(). For example the forecasted value of 01-Jan-18 (380.432$ in cell D38) can be calculated like this: =FORECAST.ETS(A38,$C$2:$C$37,$A$2:$A$37,1,1,1) and the result would be 378.675$, very close to the manual method. The related function FORECAST.ETS.SEASONALITY() is just telling you what is the seasonality that the previous function FORECAST.ETS() was based on. If we aply it to our case: =FORECAST.ETS.SEASONALITY(C2:C37,A2:A37) we get the result 12, just what we have expected (12 months). I hope it helps!
@Hanspeterbretti
@Hanspeterbretti 2 жыл бұрын
Is is usable for other figures like ebt, ooe, etc?
@Data.Analytics.Central
@Data.Analytics.Central 2 жыл бұрын
It applies to any metric that has seasonality and trend.
@Phenomenal1697
@Phenomenal1697 Жыл бұрын
How we can analyse the forecast with second order linear function with seasonality.
@Phenomenal1697
@Phenomenal1697 Жыл бұрын
Possible?
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hello, can you give more context to your question?
@Phenomenal1697
@Phenomenal1697 Жыл бұрын
I have a data which follows the quadratic graph. 2nd order linear equation fit the data. If I apply this trend+seasonality method starting forecast (from period 1 to 6) getting negative.
@Phenomenal1697
@Phenomenal1697 Жыл бұрын
Above method follow single order trend. is there same method which consider the period square term also.(2nd order)
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
@@Phenomenal1697 To clarify, the dummy variable method is typically used for linear regression models to represent categorical variables as binary variables (0 or 1). However, it is not directly applicable to quadratic models. In a quadratic regression model, you can still include categorical variables by converting them into numeric form (e.g., using integer encoding) and incorporating them as independent variables with quadratic terms if necessary. For example, if you have a categorical variable with three levels (A, B, C), you can use two numeric variables (e.g., 0 and 1) to represent this variable and then include both linear and quadratic terms for these numeric variables in the model. So, while the dummy variable method is not directly used in quadratic regression models, you can still include categorical variables in a modified numeric format and consider their linear or quadratic effects in the model.
@ericamartin98
@ericamartin98 2 жыл бұрын
Hello. When using this method, Excel is showing the value function but I don't know what I did wrong. Any idea?
@Data.Analytics.Central
@Data.Analytics.Central 2 жыл бұрын
Hello. It maybe from the relative/fixed cells references in the formula Mmult(). Please check what column/rows must be fixed and what relative. I hope this helps.
@tanvisharma924
@tanvisharma924 Жыл бұрын
SAME , DID U FIND THE ANSWER?
@stefan-kk8ln
@stefan-kk8ln Жыл бұрын
Yes, I spent 15 minutes confused about why I got it as well, and it's because you didn't fill out the binary numbers on the forecast sections, but only on the input before forecast that is
@hafizelbadawi5409
@hafizelbadawi5409 Жыл бұрын
I would like to thank you so much
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hi, Hafiz. Thanks a lot for the feedback! 🤝
@sushmabasnet4593
@sushmabasnet4593 Жыл бұрын
What about daily forecast, how do we create matrix?
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hi Sushma, You must create separate sets of dummy variables for different seasonality: - To capture day of the week seasonality, create 6 dummy variables. - To capture day of the month seasonality, create 30 dummy variables - To capture month of the year, create 11 dummy variables.
@rahuldhali7681
@rahuldhali7681 Жыл бұрын
Hey, what if we have to forecast yearly sales. How many years would we need to enter as the dummy variable ?
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hi Rahul, the number of dummy variables is equal with the number of seasons minus 1. So if your seasonality is 5 years, you use 4 dummy variables.
@nurul.alifiaa
@nurul.alifiaa Жыл бұрын
@@Data.Analytics.Central Hello, i want to ask if i'm going to forecast annual prices for 6 years (2023-2029) so the row for the dummy variable should be (2023-2028), right? pls kindly enlighten me, thank you very much!
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
@@nurul.alifiaa Hi, Nurul. The number of dummy variables are related to the number of seasons that you have in your data. So, if you have 4 seasons, you use 3 dummies. And then you can extrapolate on how many years you want. In my model I have forecasted only one extra year vs. the actual data, but we can drag down the formula for another 6 years to forecast.
@nurul.alifiaa
@nurul.alifiaa Жыл бұрын
@@Data.Analytics.Central aaaa so if i have datas from jan 2013-juli 2023, i can use jan-nov (11) dummies? i mean i can use the same formulas like yours (?) anyway thank you so much for your answer!!
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
@@nurul.alifiaa First you have to understand how many seasons you have. If it is 12 months, you will have 11 dummies, but but you need histroric data for at least 12 months, so you can train the model (it is not enough just jan23-july23
@KhinMohMohSoe
@KhinMohMohSoe Жыл бұрын
why time period t is used ?.
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
t is the trend. The rest are the seasons.
@caseykirkup
@caseykirkup 8 ай бұрын
Amazing
@Data.Analytics.Central
@Data.Analytics.Central 8 ай бұрын
Thanks a lot for the appreciation! ❤️
@hipernet
@hipernet Жыл бұрын
why don't you use December?
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hello, thanks for the question. That is because the 12-th category is captured by the intercept, and is specified when all the 11 dummy variables are all set to zero. This is the general rule: one variable less then the number of categories. If you have just 2 categories (yes and no) you put just one dummy (yes).
@hipernet
@hipernet Жыл бұрын
thanks@@Data.Analytics.Central . All my p values are bigger than 0.05, even my f and r2 are good. Then I cannot use this way, right? finally im using =forecast.ets()
@tanvisharma924
@tanvisharma924 Жыл бұрын
why dummy variable was used
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Dummy variables are useful because they allow us to include categorical variables in our analysis, which would otherwise be difficult to include due to their non-numeric nature.
@vijaymane34
@vijaymane34 10 ай бұрын
Disaponted. You didn't tell how to get trend (series) out from the time series.
@vijaymane34
@vijaymane34 10 ай бұрын
Intercept + time trend * period number (1 to n)
@JayJay-fz7sw
@JayJay-fz7sw Жыл бұрын
Its giving a biased forecast line
@Data.Analytics.Central
@Data.Analytics.Central Жыл бұрын
Hi, I hope your data has a linear relationship between the independent variables and the dependent variable.
FORECASTING BOOTCAMP  #1  Moving Averages and Weighted Moving Averages in Excel
7:08
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Operations Management using Excel: Seasonality and Trend Forecasting
13:32
Excel@Analytics - Dr. Canbolat
Рет қаралды 423 М.
Learn Regression Analysis in Excel in Just 12 Minutes
12:34
Kenji Explains
Рет қаралды 37 М.
Building a Rolling Forecast in Excel
9:56
Danielle Stein Fairhurst
Рет қаралды 154 М.
The Excel Tool That Does What PivotTables Can’t (File Included)
13:59
MyOnlineTrainingHub
Рет қаралды 259 М.
Sales Forecasting in Excel - 3 Ways!
18:01
Free the Data Academy
Рет қаралды 18 М.
How to do multiple regression on Monthly Seasonal data in Excel
6:28
Forecasting in Excel: MUST-KNOW for Any Analyst
9:35
Kenji Explains
Рет қаралды 73 М.
Forecast seasonality in Excel (EASY METHOD) | Excel Off The Grid
7:57
Excel Off The Grid
Рет қаралды 24 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН