Arithmetico-Geometric Sequences

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 47

  • @mrigayu
    @mrigayu Рік тому +21

    The application to probability was rather interesting! This pattern seemed familiar when you introduced it. Another great video!

  • @ethohalfslab
    @ethohalfslab Рік тому +9

    I just found your videos a few days ago and now I'm totally addicted

    • @DrBarker
      @DrBarker  Рік тому +2

      I'm glad you're enjoying them!

  • @maraceoofceos1243
    @maraceoofceos1243 Рік тому +6

    great video, i recently discovered your content and i love how you very simply explain everything.

    • @DrBarker
      @DrBarker  Рік тому +2

      I'm glad you're enjoying the videos!

  • @Jack_Callcott_AU
    @Jack_Callcott_AU Рік тому +2

    Thank you for another enjoyable and edifying exposition of something I needed to know, and have often been curious about❕

  • @JoQeZzZ
    @JoQeZzZ Рік тому +47

    So what you're saying is all arithmetic-geometric series converge to 6

    • @void7366
      @void7366 Рік тому +1

      Not really, the limit depends fully on the initial values and common ratios of both G(n) and A(n), in this case A(0)=G(0)=1, d=2, r=1/2.

    • @kellywshere
      @kellywshere Рік тому +20

      ​@@void7366 wooosh

    • @comic4relief
      @comic4relief Рік тому

      He derives the general formula, then shows that the particular given arithmetico-geometric series converges to 6.

  • @vvop
    @vvop Рік тому +2

    Another lovely exposition and interesting application. Well done. Thank you.

  • @TaladrisKpop
    @TaladrisKpop Рік тому +3

    A nice method is to see nr^(n-1) as the derivative of r^n

  • @rishirajasekaran6055
    @rishirajasekaran6055 Рік тому +1

    Also, out of general curiosity, is this recursive sum a general property of Markov processes with reachable terminal states?
    I'm guessing the arithmetico geometric progression can be reduced to a walk on a linear graph where after d deterministic steps it can either halt or restart from the beginning and the sum corresponds to the expected number of steps.

  • @AntoshaPushkin
    @AntoshaPushkin Рік тому +3

    Tho it's an overkill for expected number of rolls. When you roll a die, you either get 6 with probability of 1/6 or you get something else with probability 5/6, you make one unsuccessful attempt and you are now in a situation where you have the same expected number of rolls. So you get a simple equation for the expected value:
    E = 1/6*1 + 5/6*(1+E)
    => E = 1 + 5/6 E
    => 1/6 E = 1
    => E = 6

    • @rishirajasekaran6055
      @rishirajasekaran6055 Рік тому +1

      Essentially, you can calculate the original sum the same way as what you described because it's a recursive formulation
      S = SUM(1, \infty) [a + (n - 1) * d] * r^{n - 1}
      S = a + SUM(2, \infty) [a + (n - 1) * d] * r^{n - 1}
      Now apply the transformation t = n - 1
      S = a + SUM(1, \infty) [a + t * d] * r^t
      Factor out the r term:
      S = a + r * SUM(1, \infty) [a + t * d] * r^{t - 1}
      Split the t term in the arithmetic progression into (t - 1) and 1
      S = a + r * (SUM(1, \infty) [a + (t - 1)* d] * r^{t - 1}) + r * SUM(1, \infty) d * r^{t - 1}
      The middle sum is the same as S and the right term is a GP with initial value d and factor r
      S = a + r * S + [r * d / (1 - r)]
      Rearranging the S term and dividing by (1 - r)
      S = a / (1 - r) + r * d / (1 - r)^2

    • @DrBarker
      @DrBarker  Рік тому +2

      I like the recursive argument - it's nice how it gives some insight into the problem (after 1 unsuccessful roll, we're essentially back to the starting point, plus 1). The only issue here is, there is an underlying assumption that the expectation is finite. It doesn't cause any problems for this example, but we can find an example where the recursive argument doesn't work:
      E.g. flip a fair coin repeatedly until you get tails, and receive £3^n where n is the number of heads. The expected payoff would seem to satisfy E[X] = 1/2 + 1/2 * 3E[X], which gives E[X] = -1.

    • @rishirajasekaran6055
      @rishirajasekaran6055 Рік тому

      @@DrBarker correct, for the specific problem it's defined as a arithmetico-geometric progression which is why it converges.

  • @r75shell
    @r75shell Рік тому +2

    Actually, expected number of times to get something of fixed probability P is 1/P. Which for many people "obvious" but one way to prove is what you did.

    • @DrBarker
      @DrBarker  Рік тому

      Yes, it's nice to see how we can prove this sort of result by just working with the infinite sum.

  • @ProfeJulianMacias
    @ProfeJulianMacias Рік тому

    Excellent teaching

  • @MathOrient
    @MathOrient Рік тому +2

    Nicely done :)

  • @MatthisDayer
    @MatthisDayer Рік тому

    that geometric distribution has a much easier expected value which is just 1/p, where p is the probability of success, the expected value is 6 anyways.

  • @thanoo7089
    @thanoo7089 Рік тому

    Thanks you for your explaination.

  • @yakov9ify
    @yakov9ify Рік тому

    This unfortunately doesn't help with the partial sums but for the limit one could use the trick of viewing the sum as a derivative.
    First we split into ar^n and nd r^n, the ar^n part we know how to deal with but the nd r^n part can be seen as r * (d/dr d r^n). From there we can use linearity of derivatives to view the limit sum as r * d * (d/dr) (1/(1-r)) which gives us exactly what we saw in the video.

    • @Brollyy349
      @Brollyy349 Рік тому +1

      It works for partial sum as well, but you'd need to calculate a derivative of r*(1-r^n)/(1-r) in the process, so it's messier.

    • @Brollyy349
      @Brollyy349 Рік тому

      Also, it should be r/(1-r) under derivative for the infinite sum - that sum under derivative starts from n=1, not n=0.

    • @decare696
      @decare696 Рік тому

      IIUC, you're pulling out the derivative from an infinite series, which isn't always allowed, so you'd also have to justify that

    • @yakov9ify
      @yakov9ify Рік тому

      @@decare696 in this case since it's a power series it's always fine as long as the sum converges which it does for |r| < 1

  • @vangrails
    @vangrails Рік тому

    What about the reverse...so 1/1, 2/3, 4/5, 8/7, 16/9,....?

    • @DrBarker
      @DrBarker  Рік тому

      This would diverge - the geometric part is like 2^n, and you can see that the terms get bigger and bigger, so the sum is infinite. You could use e.g. the ratio test to prove more formally that it diverges.

    • @vangrails
      @vangrails Рік тому

      ​@@DrBarker Sure that will diverge if you go on until infinity but what would the sum be if you have only a finite number of terms?

  • @wesleydeng71
    @wesleydeng71 Рік тому

    The last problem. Let k be the expected # of rolls for 6 and it is the same for 1, 2 ,3, 4, 5. So, 1/k is the average occurrence of a single number on one roll. Therefore 6*1/k =1, k=6.

    • @wesleydeng71
      @wesleydeng71 Рік тому +1

      Another solution will be k = 1 + 5/6*k.

  • @YawnGod
    @YawnGod Рік тому

    He knows that if he smiles to the camera he loses the game.

  • @peekodan
    @peekodan Рік тому

    very cool

  • @andrewdsotomayor
    @andrewdsotomayor Рік тому +2

    when you wrote 6 for the last problem I face palmed.

    • @surrealbits
      @surrealbits Рік тому +1

      ya. it is 6 all the way down.

    • @andrewdsotomayor
      @andrewdsotomayor Рік тому +2

      @@surrealbits I meant as in it should be expected to be 6 times since there are 6 sides, so the answer is somewhat anticlimactic

  • @ahmadmazbouh
    @ahmadmazbouh Рік тому

    4:01 I'm a grown up man I'm a grown up man I'M A GROWN UP MAN

  • @Vladimir_Pavlov
    @Vladimir_Pavlov Рік тому

    S(x)= Σ(from k=0 to ∞) x^(2k+1)= x+x^3 +x^5+...= x/(1-x^2) ; x^2

  • @islandfireballkill
    @islandfireballkill Рік тому +6

    The infinite sum you derived at 9:00 is very similar to the Z transform of the unit step and unit ramp functions 😉. In fact you could work backwards from the Z transform to figure out the infinite sum of all kinds of geometric type series.

  • @comic4relief
    @comic4relief Рік тому

    Σ

  • @rishirajasekaran6055
    @rishirajasekaran6055 Рік тому

    You can solve it by identifying a recursive sum as follows:
    S = SUM(1, \infty) [a + (n - 1) * d] * r^{n - 1}
    Pull the n = 1 term out of the sum
    S = a + SUM(2, \infty) [a + (n - 1) * d] * r^{n - 1}
    Now apply the transformation t = n - 1
    S = a + SUM(1, \infty) [a + t * d] * r^t
    Factor out the r term:
    S = a + r * SUM(1, \infty) [a + t * d] * r^{t - 1}
    Split the t term in the arithmetic progression into (t - 1) and 1
    S = a + r * (SUM(1, \infty) [a + (t - 1)* d] * r^{t - 1}) + r * SUM(1, \infty) d * r^{t - 1}
    The middle sum is the same as S and the right term is a GP with initial value d and factor r
    S = a + r * S + [r * d / (1 - r)]
    Rearranging the S term and dividing by (1 - r)
    S = a / (1 - r) + r * d / (1 - r)^2

    • @TaladrisKpop
      @TaladrisKpop Рік тому

      Nice idea. You need to show that the series is convergent though to prove that the computations are valid (S=1+2+4+8+...+2^n+... satisfies S=1+2S, but obviously S is not equal to -1/2)

    • @rishirajasekaran6055
      @rishirajasekaran6055 Рік тому

      @@TaladrisKpop if r < 1, the sum always converges, which is the implicit assumption made in the video as well.

    • @TaladrisKpop
      @TaladrisKpop Рік тому +1

      @Rishi Rajasekaran Not at all. The video computes the partial sums and then their limits. So the convergence is taken care of.

    • @TaladrisKpop
      @TaladrisKpop Рік тому

      @Rishi Rajasekaran The convergence is easy to check (Ratio Test for example) so, as I said before, nice method