Brief introduction to Stirling numbers

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

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

  • @kenthedawg6383
    @kenthedawg6383 5 ปีที่แล้ว +24

    Great video!
    I wanted to comment some motivation for the recursive formulas because I think it’s a fun exercise to see how to derive them!
    For the recursive formula for stirring numbers of the second kind at 7:17, we can think about it in the following way:
    Say you have n objects and k similar boxes, pick your favorite object and call it O. Now O can either go in a box by itself or it can be in a box with some other objects. There are S(n-1,k-1) ways to put it in a box by itself (since all boxes are similar, we put in a box and then must put the remaining n-1 objects into k-1 boxes). Then, to find the number of ways to put O in a box with at least one other object, we first put the remaining n-1 objects into the k boxes. Then, we pick a box to put O in. There are k ways to pick this box. So there are k * S(n-1,k) ways to do this. Since the two cases share no overlap we can sum them resulting in the recursive formula.
    A very similar argument follows for the recursive formula at 21:30. Now instead of placing O in a box we place it on a circle. The argument for the first term is identical to the one above. The second term follows from first placing the n-1 objects on k circles. Then there are n-1 ways to place O onto one of the k circles taking into account placement relative to the objects already there.
    I didn’t argue for the uniqueness of each arrangement but it’s not too hard to see that it holds!

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

      I love it! In fact, that how I memorized the formula too! Just memorizing terms is kind of hard for me, but with the reasoning in mind, it is easy to derive a formula on the fly!

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

      Very nice explanation! It confirmed what I thought.
      Another explanation for the 2nd term of the Stirling Numbers of the First Kind would be to realize that there are M "gaps" between M points on a circle. You could think of it as saying each of the M objects has exactly one "gap" to the left (or, thinking alternately, the right) of it. And if you are dealing with multiple circles, you just add the number of "gaps" from all the circles up to get how many choices your favorite object O can be added.

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

      @@alkankondo89 That is a great explanation for it!

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

      Hey @ken the dawg, pretty nice explanation. Its very thoughtful to come up with something so easy to understand.
      Actually I wanted your help with an assignment.
      This is assignment's second part which is the number of ways to partition n elements into k boxes with each box having atleast 2 elements. This is famous by the name of associated stirling numbers but I tried to use your logic but I am unable to match my result to the answer.
      I have (for atleast 2 in each box) S(n, k) = S(n-2, k-1) + (k*k)(S(n-2, k).
      I came up using the following logic. Say you take two numbers and give them their own box (the first term above).
      Or you find when those two numbers are together in a box k*S(n-2, k),
      or when two numbers are in different boxes so k*(k-1)*S(n-2, k).
      The addition of last two cases gives the term (k*k)S(n-2, k).
      So total addition gives the above result.
      But the result everywhere else is S(n, k) = k*S(n-1, k) + (n-1)S(n-2, k-1).
      I can't even think of how this n-1 can come up in the answer. Please help.
      I am too much frustrated and tried a lot many times and different ways but always end up with something involving only k's and no n in multiplication.

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

      @@harshitkumar9708 This was a fun one to think about! I had to glance at the general equation found at: en.wikipedia.org/wiki/Stirling_numbers_of_the_second_kind#cite_ref-14 to get a sense of how to derive the result as it wasn't obvious to me.
      Here is the idea for the general problem of finding the number of ways to partition n distinct balls into k indistinguishable boxes with each box having atleast size r (in your case r = 2)
      To begin, pick your favorite ball of the set and call it O. Now, there are two cases for size (meaning total number of balls) of the box containing O. Either,
      1) O is in a box of size > r
      2) O is in a box of size = r
      In the first case, we place all the other balls such that each box has size at least r. There are S_r(n - 1, k) ways to do that. Then, we place O in one of these boxes, of which there are k ways, and that box is now guaranteed to have size greater than r.
      In the second case, we need to pick r - 1 other balls of the n - 1 remaining balls to go in the size r box with O. There are exactly (n - 1 choose r - 1) ways to do so. Now, we are left with n - r balls to place in k - 1 boxes, each containing at least r balls of which there are S_r(n - r, k - 1) ways to do so.
      I hope that helps! -Ken

  • @ugger25
    @ugger25 4 ปีที่แล้ว +12

    This was a great introductory video that helped me get started on the topic! Really appreciate your time and enthusiasm.

  • @nchoosekmath
    @nchoosekmath  5 ปีที่แล้ว +15

    Due to sickness, other commitments, laziness, I am sorry for being inactive for so long. I am still busy, but will try to upload more regularly. Let me know what kind of video you would like to see!

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

      using Stirling numbers in some questions.( in other words applications ).

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

      Will do!

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

      Two way of counting theorem and application

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

      Could you answer this: How many ways can you arrange n similar objects in m similar boxes that each box has minimum 2 objects? (2m

  • @AndrewHelmer47
    @AndrewHelmer47 4 ปีที่แล้ว +3

    Really great video, explaining both the intuition and giving the formulas!

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

    Helped me so much dude, thanks! Keep up the good work :)

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

    would love to see more about stirling numbers, it'll be fun to see them in their generating function's context, and the thing you talked about linear algebra

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

    Thank you for this video dude! Appreciate your attention to detail in explaining the concept. Much help in solving my Combinatorics hw haha

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

    Thank you sooo much !!!!
    This was so helpful.
    Greetings from Poland

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

    Thank you sooo much for this informative video! literally saved my life

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

    thank you so much this was so clear and really helped me understand it!!!

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

    Great video! I haven't seen many videos about these interesting sets of numbers. I also like how you explained the reasoning behind the base cases (e.g. S(n,n), S(n,0), S(0,0) ).

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

    You are a star mate keep it up!

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

      Aww thank you for your kind words!

  • @sunainapati
    @sunainapati 5 ปีที่แล้ว +6

    yess... you explained so beautifully ..

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

    Great video! This helps a lot for understanding my lecture class.😀

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

    4:33 shouldnt the no of items of arrangement be 5p3?

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

    Amazing video! Very clear while also very detailed.

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

    You explained very well. Thanks!

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

    @5:00 You say there isn't a formula, but the Wikipedia page on these numbers lists one.

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

    because of your video, i am going to do great on my paper....thank you

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

    great explenation, way better than my professor

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

    u r just awesome.. really liked it.. really showing ur hard work to make the information simple and understandable

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

    Thank u very much for this video, it really helped me a lot to understand what stirling numbers stand for. You really explained it way better, than my professor did. :D

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

    Was amazing video❤️❤️

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

    Great video. Though, how do know that S(3,2)= 3?

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

    This was really helpful. Thank you

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

    This was so helpful, thank you so much!

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

    Thank you a lot! Very useful and clear video

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

    Not only there is a recursive formula but also an explicit formula.

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

    Great video 👍🏻

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

    Good Job Bro!

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

    Thanks. What if you want to have minimum 2 objects in each box? How do you calculate it?

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

      And what will it be for similar objects?

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

    When would you use the first kind versus the second kind?

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

    Very helpful video, thank you sir

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

    You are great man!

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

    Very well explained👌👌👍👍 .....plss make a playlist on combinatorics or number theory......it is much needed plzzz plzzzz

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

      Sure thing! Combinatorics is my favorite topic in math!

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

      @@nchoosekmath could you make videos on combinatorics fast plsss😇😇😇
      And plss suggest book for combinatorics and number theory🤗🤗🤗

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

    But if you just put 1 in the first or the second box, the box that is left will be empty too? Could you elaborate on that?

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

      each box must have an element according to definition of the problem

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

    Thanks man you helped me understand it

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

    The explanation was very nice, I now understand what Stirling numbers of the first kind are, and I have a problem related to Stirling numbers of the first kind:-
    Given an rearrangement of the numbers 1 to n, let's define the number of boxes. Each box contains all the numbers starting from a particular number until it reaches a number less than the particular number, and now the next box starts from the next number of the rearrangement. So for example, the rearrangement-1,2,4,3,5 will be partitioned as (1)(2)(4,3)(5). This is because the first box starts from 1 and ends there as 2

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

    big thanks this was really helpful!

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

    these numbers have some relation with bernoulli numbers,can you make a video on that topic?

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

      Fantastic idea! I will prepare a video about that!

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

      @@nchoosekmath thank you

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

    Great video!

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

    thank you

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

    Good 👍👍

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

    Unfortunately, the quality is horrible, but the content is really interesting ...

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

    Thank you!

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

    why S(0,0)=1?

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

    Thank youu

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

    great
    tnx a lot

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

    great

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

    Not so well at all , you didn't mention the difference between first kind and second kind .You only said well about second kind.For first kind , you have skipped many understandings. I think your explanation regarding first kind is incomplete.

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

    Your explanation for S(n, n) is completely wrong.

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

    Thank you!

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

    Thank you