Forecasting: Weighted Moving Averages, MAD

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น • 240

  • @shadowhalk225
    @shadowhalk225 4 ปีที่แล้ว +76

    Sir, I'm not exaggerating when I say you've saved my life. God bless you

    • @kingchisale4605
      @kingchisale4605 2 ปีที่แล้ว

      Ndipo sukunama😂

    • @dafulegend5905
      @dafulegend5905 ปีที่แล้ว

      I know this is old, but like because of this channel, I was basically able to get 3.0 with a terror prof. For more context, the professor grades infamously low, but I still managed to get a score of 3.0, which is around 85%, or a B - B+.

    • @philippalaribambilla8439
      @philippalaribambilla8439 ปีที่แล้ว

      Thank you sir, this is very interesting

  • @mehdirahan6943
    @mehdirahan6943 3 ปีที่แล้ว +45

    If only professors could be as clear as this video as well as Joshua's other videos. Thank you so much sir!

    • @ivageorgieva2985
      @ivageorgieva2985 ปีที่แล้ว +1

      Rightttt our professor literally makes it sound so much more difficult ..explaining such a simple thing for over 30 min when it can be shown for 5 minutes ..

    • @mehdirahan6943
      @mehdirahan6943 ปีที่แล้ว

      @@ivageorgieva2985 It's also why I believe actual experience is worth way more than knowledge for the most part.

  • @alehegnasmie6628
    @alehegnasmie6628 2 ปีที่แล้ว +7

    Sir, I'm not exaggerating when I say you've saved my life. God bless you You Give me So much better than my teacher's explanation. Thanks! a lot

    • @joshemman
      @joshemman  2 ปีที่แล้ว +2

      Glad to help Alehegn.

  • @issact5932
    @issact5932 7 ปีที่แล้ว +2

    You are a better Professor than MY professor !!!! more clear and easy to understand!!! 100% GOOD for international students!

  • @apple_yt7122
    @apple_yt7122 7 หลายเดือนก่อน +2

    Thank you. You literally explained something that my professor couldn't for 2 straight hours. Thanks a lot.

  • @Skiiandme
    @Skiiandme 3 ปีที่แล้ว +5

    Saved me 5 hours of reading a complicated book. Thanks!

  • @connornicholas8628
    @connornicholas8628 4 ปีที่แล้ว +6

    You have saved me! I've been stuck on a problem like this for hours!

  • @krisramirez7139
    @krisramirez7139 5 ปีที่แล้ว +8

    Thank you! I was so confused by this in my textbook. You broke it down to where I can understand the material!

    • @kanhaythakore8136
      @kanhaythakore8136 2 ปีที่แล้ว

      lode ka textbook mai galat diya hai
      sab loda bhenchod bakwaas hai

  • @fadzreenamyra7919
    @fadzreenamyra7919 3 ปีที่แล้ว +2

    thank you sir, it took me 5 min to understand it clearly, u deserve everything in this world 😭🙌🏻

  • @immaculatechelangat2729
    @immaculatechelangat2729 2 ปีที่แล้ว +3

    Now I can pass my exam! Phew... Thank you for this. Very clear

  • @PhrAntoine
    @PhrAntoine 4 ปีที่แล้ว +11

    The 4 weeks percentages were already convent to a percentage, that's why it adds up to 1.
    That's also why you divide the WMA by 5 for week 2.
    3(x)/5 + 2(y)/5 = (3x+2y)/5
    I think the important part to remember is to convert to percentages

  • @P_sh9
    @P_sh9 ปีที่แล้ว +1

    Legit needed this vid. Thank you. If it wasn't for this vid I'd be stressed as hell.

  • @alperari9496
    @alperari9496 หลายเดือนก่อน

    Coming from Deep Learning class where we use this method during the optimization of trainer. Thanks a lot.

  • @syedabrar9431
    @syedabrar9431 ปีที่แล้ว +1

    Out class video... My exam will be conducted in a few hours I'm seeing this video all concept cleared. Thank you. God bless you dear. More n more shared in my class mates Whatsapp group

  • @ShinEKMG
    @ShinEKMG 2 ปีที่แล้ว +1

    Very helpful video. This channel must be located by students.

  • @twylahjanet
    @twylahjanet 5 หลายเดือนก่อน

    Awesome job of breaking it down!

  • @muhammadtahakhan8388
    @muhammadtahakhan8388 6 ปีที่แล้ว +2

    Given the following data, use exponential smoothing with α = 0.2 to develop a demand forecast for period 7. (Forecast for Period 1=10).

  • @pagalhokya
    @pagalhokya 2 ปีที่แล้ว +2

    You're a legend! I wish my professor was like this :(

  • @shaikhashab9697
    @shaikhashab9697 2 ปีที่แล้ว

    you are a great teacher sir everyone is a teacher but everyone is not have a Idea how to teach you teach very well sir

  • @adnandanisubhanallah8218
    @adnandanisubhanallah8218 2 ปีที่แล้ว

    i just fall in love with your method of explaining🙈🙈🙈

    • @joshemman
      @joshemman  2 ปีที่แล้ว

      Thank you so much 😀

  • @md.yousufalamin6348
    @md.yousufalamin6348 3 ปีที่แล้ว

    Thank you man tomorrow is my exam. It helped me. Great video.

  • @triciaeisaac
    @triciaeisaac 4 ปีที่แล้ว

    Thank you sir! Your videos are clear and I always leave smarter than when I first arrived!

  • @kaelynf12
    @kaelynf12 3 ปีที่แล้ว

    this was very helpful before I had to take an exam. Thank you!

  • @PhrAntoine
    @PhrAntoine 4 ปีที่แล้ว

    I would suggest changing the values for weeks to a date structure. It makes it easier to follow. The term "next most recent" is an odd way to say the previous week

  • @namiqqfrli3553
    @namiqqfrli3553 8 ปีที่แล้ว +1

    Man,
    during 3:42, I think that something went wrong. So, for week 5 we should have to calculate (3*45+2*40)/5. 2*40 not 44. Because as seen all other calculations we have done it the first 2 CONSEQUENCE numbers from back to front.

    • @joshemman
      @joshemman  8 ปีที่แล้ว +1

      You're right. That was a typo. The answer is correct though.

  • @margaretrajski4808
    @margaretrajski4808 ปีที่แล้ว +1

    Excellent explanation!

    • @joshemman
      @joshemman  ปีที่แล้ว

      Thanks, Margaret.

  • @jonathancaicedo5105
    @jonathancaicedo5105 5 ปีที่แล้ว +2

    Your videos are amazing and really easy to understand, do you have anything about Simple Linear Regression?

  • @NaveenBali4
    @NaveenBali4 6 ปีที่แล้ว +2

    Thanks for this simple and straightforward explanation.
    I have a question on when do we use MSE vs MAE for error calculation

  • @tharmasilan.v335
    @tharmasilan.v335 2 ปีที่แล้ว +1

    This was very helpful. Thank you.

    • @joshemman
      @joshemman  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @mishellwadzanai92
    @mishellwadzanai92 ปีที่แล้ว

    thank you so much this was really helpful, it was loud and clear...

  • @HealthyFoodBae_
    @HealthyFoodBae_ 3 ปีที่แล้ว +2

    Thank you!
    1. Is weighted moving average, or moving average really a forecasting method? Or is it a way of smoothing the data?
    (I am trying to learn and understand. )
    2. How do you determine which weight value to use?
    Thank you for the insight.

    • @joshemman
      @joshemman  3 ปีที่แล้ว +1

      1. They are smoothing methods and can be used for forecasting.
      2. Typically you choose your weights in a way that minimizes error. Methods used will vary by context.

  • @rickyc1578
    @rickyc1578 4 ปีที่แล้ว

    Correct me if I am wrong but for Forecast 5, the Numerator should read 3(45) + 2 (40), not 3 (45) + 2 (44) since we are using the last two most recent Sales (45 and 40). The answer 43 is correct though. Thanks by the way, you explain it so clearly!

    • @joshemman
      @joshemman  4 ปีที่แล้ว +1

      You're right. F5 should be (3(45) + 2 (40))/5 at 3:43. Thanks for pointing it out.

    • @rickyc1578
      @rickyc1578 4 ปีที่แล้ว

      @@joshemman normally if the instruction does not give a weighted value and youre asked to find the WMA for 2 periods, is it assumed its weighted by 1...so splitting the two periods by .6 and .4?

    • @joshemman
      @joshemman  4 ปีที่แล้ว

      @@rickyc1578 You should be given at least one weight.

  • @nathaliyaminukshi8630
    @nathaliyaminukshi8630 4 ปีที่แล้ว

    thank you for the explanation. this was soo easy to understand.

  • @ellisakerragasajo7889
    @ellisakerragasajo7889 2 ปีที่แล้ว +1

    Thank you for this, Sir!❤️

    • @joshemman
      @joshemman  2 ปีที่แล้ว

      My pleasure, Ellisa!

  • @anchalmishra
    @anchalmishra 3 ปีที่แล้ว +1

    on what basis you calculated weights

  • @mussamageke
    @mussamageke ปีที่แล้ว +1

    Very good explanation

  • @susah135
    @susah135 7 ปีที่แล้ว +2

    Can we using the method for seasonal data where the irregularity can be extreme? For example, can we know that next week the sales would be 60, which is very different than the rest of your data?

  • @bibekanandabhattacharjee952
    @bibekanandabhattacharjee952 3 ปีที่แล้ว

    That was very comprehensible. Like it.

  • @mohameddesouky4898
    @mohameddesouky4898 6 ปีที่แล้ว +2

    Well Explained, if i have the Data and i should put the weight values how i can calculate them !
    i just have Data for sales last year and want to use this method it's applicable and how !
    thank you very much for your support

  • @anuragsrivastav2131
    @anuragsrivastav2131 6 ปีที่แล้ว +2

    Hello Joshua,I would like to thank you for wonderful explanation.i have a question will the smaller value of m will give good forecast if so then how.

  • @averyperosa3052
    @averyperosa3052 4 ปีที่แล้ว +1

    thank you very much for this video, why is 45 the most recent value to start?

    • @joshemman
      @joshemman  4 ปีที่แล้ว +1

      Of all the recent periods, 45 is the closest the period we want to forecast.

  • @Brownskin-x5t
    @Brownskin-x5t 2 ปีที่แล้ว +2

    You saved me.
    Merci beaucoup!

  • @tanaman7111
    @tanaman7111 4 ปีที่แล้ว

    May the force be with you Joshua

  • @freddy1599
    @freddy1599 4 ปีที่แล้ว

    Thank you. Which formula can I use in predicting the overhead budget.
    Thanks again

  • @Rambowayne
    @Rambowayne 7 ปีที่แล้ว +1

    Man, good job. It was helpful.

  • @RaynerGS
    @RaynerGS 6 ปีที่แล้ว

    #Weighted Moving Average 4WMA
    weight = [0.4, 0.3, 0.2, 0.1]
    sales = [39, 44, 40, 45, 38, 43, 39]
    calc = lambda x: 0 if x < len(weight) else sales[x-1]*weight[0] + sales[x-2]*weight[1] + sales[x-3]*weight[2] + sales[x-4]*weight[3]
    forecast = [ calc(x) for x in range(0, len(sales) ) ]
    print(forecast)

  • @novagamer6198
    @novagamer6198 3 ปีที่แล้ว

    Thank you so much I understand everything keep up the good work 👍

  • @gooddaniel8603
    @gooddaniel8603 8 ปีที่แล้ว

    Very incredible, wish you include more topic in that video lecture

  • @FuatEnesARICI
    @FuatEnesARICI 5 ปีที่แล้ว

    how to decide of their weights ??

  • @AdamELclon
    @AdamELclon 6 ปีที่แล้ว

    well explained and very helpful, Thank you so much Joshua

  • @emanfahmi84
    @emanfahmi84 5 ปีที่แล้ว

    Big thanks you are GREAT , VOICE, VERBAL , SMOOTH EXPLANATION, THANK YOU :)

    • @ie95_Moh
      @ie95_Moh 3 ปีที่แล้ว

      Thank you

  • @ntakirutimanaeric5819
    @ntakirutimanaeric5819 11 หลายเดือนก่อน +1

    thank you for your deeply help.

  • @eriol33
    @eriol33 3 ปีที่แล้ว

    if I got my next job, I must thank you

  • @hSep-or5sh
    @hSep-or5sh 7 ปีที่แล้ว +1

    thank you for this amazing explanations 👌

  • @pibidenalanka987
    @pibidenalanka987 ปีที่แล้ว

    Thank you very much, Sir for explaining well.

    • @joshemman
      @joshemman  ปีที่แล้ว

      You are most welcome

  • @yearsemakid2569
    @yearsemakid2569 4 หลายเดือนก่อน

    Mister my question the instruction only weight moving average approch by your given example how to calculate?

  • @sophietan2652
    @sophietan2652 4 ปีที่แล้ว

    Great explanation!! Thank you so much :)

  • @talatuhassan6469
    @talatuhassan6469 7 ปีที่แล้ว +1

    How to find exp entail smoothing regression analysis, Markov chain, simulation. Thank you

  • @Firestarter009
    @Firestarter009 7 ปีที่แล้ว

    hi joshua
    could you further evaluate for Normalised weighted Root Mean Squared logarithmatic Error,please

  • @alviandarif3220
    @alviandarif3220 4 ปีที่แล้ว

    Thank you, that was useful for my study!

  • @RichaHanda
    @RichaHanda 8 ปีที่แล้ว

    if i increase number of weeks then error will decrease or increase. if error is increase as shown in ur example that 2wma give better smoothing than 4 wma then it means as number of periods increases the smoothing error get increased.

    • @joshemman
      @joshemman  8 ปีที่แล้ว

      Not at all. The errors depend largely on the data you have.

  • @ThePhysics1234
    @ThePhysics1234 6 ปีที่แล้ว

    How do you differentiate Mean absolute deviation vs Median absolute deviation which is also short for MAD

  • @OmarAl93
    @OmarAl93 2 ปีที่แล้ว

    I have a small question on which basis should we consider the weights e.g. 2WMA we have picked 2,3. In 4WMA we have chosen 0,4 0,3 0,2 0,1 relatively. Is there a reseaon for choosing the weights? Can the column 4WMA values represent the upcoming year forecast?

    • @joshemman
      @joshemman  2 ปีที่แล้ว +1

      The reason for choosing the weights can depend on the nature of the data, the objective of the forecast, and relevance of the recent data. But it is nothing to worry about unless you’re trying to choose your own weights.
      Yes! The 4WMA values are the forecast values.

    • @OmarAl93
      @OmarAl93 2 ปีที่แล้ว

      @@joshemman Thanks a lot, this makes a lot of sense now :). I applied the method on 2021 to forecast 2022, the results are below the actuals I have in 2022 (Jan-Sep) Would you recommend more statistical methods to have more accurate results? I already have data for 2021 and 2022.

    • @joshemman
      @joshemman  2 ปีที่แล้ว +1

      ​@@OmarAl93It depends on your data and your objective, Omar. Weighted moving average is usually applied to data that has no trend (not consistently increasing or decreasing). If there is trend, then regression might be a better approach.

  • @Eussub40
    @Eussub40 2 ปีที่แล้ว

    What is you were asked in a question like what would be the weighted moving average for week 6 if the weight were 0.40, 0.30, 0.20 and 0.10?

    • @joshemman
      @joshemman  2 ปีที่แล้ว

      You assign the weights respectively to periods 5, 4, 3 and 2.

    • @Eussub40
      @Eussub40 2 ปีที่แล้ว

      ohhh so then the weights would be 0.5, 0.4,0.3,0.2 and 0.1?

    • @joshemman
      @joshemman  2 ปีที่แล้ว

      @@Eussub40
      0.40, 0.30, 0.20 and 0.10.
      Where did 0.5 come from?

    • @Eussub40
      @Eussub40 2 ปีที่แล้ว

      @@joshemman I really don't know how to work out this equation. I'm doing an entrepreneurship course and I hate this part. The reason I said 0.50 cause you said assign the weight respectively to period 5 etc

    • @Eussub40
      @Eussub40 2 ปีที่แล้ว

      @@joshemman maybe I misunderstood

  • @AnAyahaDay
    @AnAyahaDay 4 ปีที่แล้ว

    What if we want to forecast more than one values in future. For example 21 future values in future? considering we have enough past data.

    • @joshemman
      @joshemman  4 ปีที่แล้ว

      You cannot forecast more than one period into the future with this method.

  • @chrislainma5997
    @chrislainma5997 5 ปีที่แล้ว

    Very good explanation, thanks

  • @linhnguyen-qr6dp
    @linhnguyen-qr6dp 3 ปีที่แล้ว

    Thank you so much for the videos. But I’m wondering if we could calculate week 8-10? how could I do that?

    • @joshemman
      @joshemman  3 ปีที่แล้ว +1

      No, you cannot. You can only forecast one period into the future using this method.

  • @hassanalianees5530
    @hassanalianees5530 3 ปีที่แล้ว

    What is the benefit of taking Moving Averages?
    How can we interpret MAD?

  • @nikkinikki8745
    @nikkinikki8745 5 ปีที่แล้ว

    Please Josh how would interpret the 2.92 result?

  • @froilansalac6030
    @froilansalac6030 6 ปีที่แล้ว

    thanks! i Got great ideas for this videos!

  • @ArslanJapani
    @ArslanJapani 4 ปีที่แล้ว

    That Really helped alot sir!
    Thankew

  • @sushmabalakrishnan4909
    @sushmabalakrishnan4909 7 ปีที่แล้ว +1

    Hello.. The video is great explained very clearly
    But I had a doubt, when "we assume the weights of different values the sum of their weights should be equal to 1", Here It is satisfied for 4week but not in case of 2week??

    • @nikitaagrawal9472
      @nikitaagrawal9472 5 ปีที่แล้ว

      Because in 4 weeks the sum of weights are 1.

    • @nikitaagrawal9472
      @nikitaagrawal9472 5 ปีที่แล้ว

      Because in 4 years week, the sum of weights is 1.

  • @kermit8556
    @kermit8556 2 ปีที่แล้ว +1

    you are AMAZING

  • @axineriego1674
    @axineriego1674 2 ปีที่แล้ว

    Sir I have another question, the lower the MAD and MSE, the forecasting method used is more accurate?

    • @joshemman
      @joshemman  2 ปีที่แล้ว +1

      That's correct.

    • @axineriego1674
      @axineriego1674 2 ปีที่แล้ว

      @@joshemman Thank you again.

  • @nourkhawari5168
    @nourkhawari5168 5 ปีที่แล้ว

    what if the ( 4 weeks ) is not given, the question only says find the forecast for a specific month? how can i solve ?

  • @Deebz786
    @Deebz786 9 ปีที่แล้ว

    Joshua you are the man

  • @hassanalianees5530
    @hassanalianees5530 3 ปีที่แล้ว

    How can we know what weights should be used?

  • @mayceperalta520
    @mayceperalta520 ปีที่แล้ว

    Thank you for thisssss 🥰🥰

  • @Dan71Pel
    @Dan71Pel 6 ปีที่แล้ว

    Great vid. Thank you so much!

  • @HealthyFoodBae_
    @HealthyFoodBae_ 3 ปีที่แล้ว

    How do you know which weight values to use?

  • @joelopez3552
    @joelopez3552 4 ปีที่แล้ว

    i love this dude

  • @dddaaev
    @dddaaev 5 ปีที่แล้ว

    Hello! I got a question, I was reading about this method, and I saw that all the weights must be equal to 1, I'm a bit confused why did you choose weight 5 on the second example.

    • @ahboiiyan5337
      @ahboiiyan5337 5 ปีที่แล้ว

      its just an example i think is it does not equal to 1

    • @meuko
      @meuko 5 ปีที่แล้ว

      It's true that the total weight must be equal to 1, but he explains that even though his weight totals at 5, he divides his final answer by 5, so he gets the actual weight of one.

  • @paradox9295
    @paradox9295 ปีที่แล้ว +1

    Thank you sir!

  • @melprincorrea4237
    @melprincorrea4237 4 ปีที่แล้ว

    how do you come up with weights of .4.3.2.1 for 4week Weighted average and for 2 week weighted average , how did u get Weights 3 and 2? is it an automatic assumption?

    • @joshemman
      @joshemman  4 ปีที่แล้ว

      Yes. They are assumed (chosen randomly for the example)

  • @jjjahed7272
    @jjjahed7272 8 ปีที่แล้ว

    If there three weights in question but two of them are given.
    How can I calculate the third weight, since it wasn't given. Thanks

    • @joshemman
      @joshemman  8 ปีที่แล้ว

      +MD Jahedul Islam
      Just make sure the they add up to 1 (or 100%).

  • @axineriego1674
    @axineriego1674 2 ปีที่แล้ว

    If the given weight equals to 1 means you don't have to dividw it by its n, then if the weight is not equal to 1 then you have to divide it by its n, right?

    • @joshemman
      @joshemman  2 ปีที่แล้ว +1

      Yes. If the weights add up to 1, you're essentially dividing by 1 which appears like doing nothing.

    • @axineriego1674
      @axineriego1674 2 ปีที่แล้ว

      @@joshemman Thank you.

  • @ratupangpang7329
    @ratupangpang7329 3 ปีที่แล้ว

    Why use weights 3 and 2 at 2WMA instead of using weights 2 and 1?

    • @joshemman
      @joshemman  3 ปีที่แล้ว

      The weights are assigned based on the level of importance recent periods. They will vary from one problem to another.

  • @CUTECAT59036
    @CUTECAT59036 3 ปีที่แล้ว

    Thank you very much

  • @mbekezelencube437
    @mbekezelencube437 3 ปีที่แล้ว

    HOW DO I CALCULATE THE FORECAST GIVEN 3 WEIGHTS ONLY?

  • @haticekubragurses8568
    @haticekubragurses8568 6 ปีที่แล้ว

    can u explain decomposition on your nex video

  • @푼야와
    @푼야와 3 ปีที่แล้ว

    How about there is no given weight average but we need to calculate the three months and six montsh weighted moving averages?. Can someone help me/enlighten me please. THANK YOU

  • @kingngote5201
    @kingngote5201 5 ปีที่แล้ว

    How can you calculate the sales for week 9 and 10.

  • @ravenmateo9454
    @ravenmateo9454 2 ปีที่แล้ว +1

    really helped well sir thank you t__________t

  • @hydershaikh83
    @hydershaikh83 8 ปีที่แล้ว

    so finally there are 2 types of method if we got value 1 by calculating all given weight value so we have to have solve from 1st method if we are getting another value like 5 or 7 or 10 by calcuting so we have to do by the second method

  • @MindBeliever
    @MindBeliever 4 ปีที่แล้ว

    Anyone know how it work on "optimum weighted moving avarage". There is no weights?? 🤔

  • @TrangNguyen-si8ru
    @TrangNguyen-si8ru 4 ปีที่แล้ว

    Hi, How can we decide the weights?

  • @NiksterInspirations
    @NiksterInspirations 7 ปีที่แล้ว

    Very helpful, thank you.

  • @nicktelsa3473
    @nicktelsa3473 6 ปีที่แล้ว

    So what happens to the first 4 weeks that are empty? Where do we get that data from?

    • @joshemman
      @joshemman  6 ปีที่แล้ว

      Nothing happens. You can't get data for those periods so you leave them alone.

  • @andrewlian9866
    @andrewlian9866 8 ปีที่แล้ว

    In 2-week WMA case, weight 3 and 2, are they just random number? and how to get the optimal weights? thanks

    • @joshemman
      @joshemman  8 ปีที่แล้ว

      +Andrew Lian
      You can use Excel's Solver to obtain optimal weights. See th-cam.com/video/zOGfG65ASdA/w-d-xo.html

    • @andrewlian9866
      @andrewlian9866 8 ปีที่แล้ว

      Joshua Emmanuel thank you! that would be helpful

  • @jeffjericcastillo3710
    @jeffjericcastillo3710 3 ปีที่แล้ว

    hi sir, may i ask what weights to use in 3-WMA?

    • @muathsaeed1569
      @muathsaeed1569 3 ปีที่แล้ว

      the weights are decided by the management who conducted the study based on what they see is important. they are not fixed numbers, you could choose any weights you want. but generally managemnet or the person who is doing the forecasting give the recent data more priority than old data which means higher weights for rececnt data