Markov Chains & Transition Matrices

Поделиться
HTML-код
  • Опубликовано: 10 июн 2024
  • Part 1 on Markov Chains can be found here: • Intro to Markov Chains... In part 2 we study transition matrices. Using a transition matrix let's us do computation of Markov Chains far more efficiently because determining a future state from some initial state is nothing more than multiplying by a transition matrix. I show you how to go from a Transition Diagram to a Transition Matrix, the terminology used, and do an example to show you how to compute the probabilities. The use of the transition matrix makes it far easier to compute future states arbitrarily far into the future.
    COURSE PLAYLISTS:
    ►CALCULUS I: • Calculus I (Limits, De...
    ► CALCULUS II: • Calculus II (Integrati...
    ►MULTIVARIABLE CALCULUS (Calc III): • Calculus III: Multivar...
    ►DIFFERENTIAL EQUATIONS (Calc IV): • How to solve ODEs with...
    ►DISCRETE MATH: • Discrete Math (Full Co...
    ►LINEAR ALGEBRA: • Linear Algebra (Full C...
    OTHER PLAYLISTS:
    ► Learning Math Series
    • 5 Tips To Make Math Pr...
    ►Cool Math Series:
    • Cool Math Series
    BECOME A MEMBER:
    ►Join: / @drtrefor
    MATH BOOKS & MERCH I LOVE:
    ► My Amazon Affiliate Shop: www.amazon.com/shop/treforbazett
    Special thanks to Imaginary Fan members Frank Dearr & Cameron Lowes for supporting this video.
    SOCIALS:
    ►Twitter (math based): / treforbazett
    ►Instagram (photography based): / treforphotography

Комментарии • 154

  • @nehabose3181
    @nehabose3181 2 года назад +45

    Best video on Markov Chains. So easy to understand and no unnecessary analogies. Great job!

  • @tyfoodsforthought
    @tyfoodsforthought 3 года назад +18

    So crisp. So clean. So clear.

  • @dhrumilburad5859
    @dhrumilburad5859 3 года назад +24

    What a video man, what an explanation. I literally understood the concept in one go. Keep it up !!!!!!

  • @jimf2482
    @jimf2482 3 месяца назад +2

    Dr Trefor, you're a blessing. Thank you for such clear explanations. They're liquid gold.

  • @blacksages
    @blacksages 2 года назад +2

    THANK YOU! God, i finally understood how to make the damn matrix. My professor is so bad at explaining things and he just goes by the sum version, and doesn't explain things.
    This is such a life savior !

  • @titobruni987
    @titobruni987 3 года назад +14

    I've been watching math videos for a few years and I have to say that your channel is the best. You just teach in a extremely organized and interesting way. Please keep on!

    • @DrTrefor
      @DrTrefor  3 года назад +5

      Thank you so much!

  • @steng9887
    @steng9887 Месяц назад +1

    Simply excellent explanation. In 6 minutes you made me understood what I tried to study in a week

  • @kidnard6017
    @kidnard6017 3 года назад +27

    Dude, you are a magician, the way u explain it ! Seems so easy, and make so much sense, thank you so much ! Please do more part !

  • @LisaZuckberg
    @LisaZuckberg Год назад +1

    OMG! This is the best video on Markov Chains. I just spent 30 mins on reading articles on medium, brilliant, wikipedia, etc and couldn't understand what they meant at all. But 4 mins into this video, I got it!

  • @joelipowski8393
    @joelipowski8393 8 месяцев назад +1

    Crystal clear explanation. Direct and easy to understand. Thank You!

  • @SAAARC
    @SAAARC 3 года назад +2

    The explanations are easy to understand and the video length is at the sweet spot. Great job!
    Looking forward to the rest of the series.

    • @DrTrefor
      @DrTrefor  3 года назад +2

      Thank you, glad you're enjoying!

  • @anaibrahim4361
    @anaibrahim4361 3 года назад +3

    don't know how to thank you sir
    this deserves to be paied for
    really great job and pure gold

  • @xxg-forcexx8734
    @xxg-forcexx8734 2 года назад +23

    Generally speaking the rows are "from state A" and the columns are "to state B" within the literature (so invert his matrix along the diagonal) and it would have been nice to see the even simpler form of P using eigenvalues and eigenvectors to create AD(A^-1)=P to even better show how this generalises transitions and then shows the rate at which the markov chain converges

  • @databridgeconsultants9163
    @databridgeconsultants9163 2 года назад +1

    Wow. Thank you very much. What a way to make this look so easy. I understood this concept for the first time in my life.

  • @frozenkingfrozenking6989
    @frozenkingfrozenking6989 Год назад +1

    Good, very good. Some people on ytube are just afraid of writing math when ever they are teaching, and just mistify the subject. This is good math indeed.

  • @Sid-xt3kt
    @Sid-xt3kt Год назад +5

    This guy saving my linear algebra grades

    • @Sid-xt3kt
      @Sid-xt3kt Год назад

      also i just realized that markov chains look like finite state machines

  • @JohnSmith-qp4bt
    @JohnSmith-qp4bt 2 года назад +2

    Clear explanation. Well poised and articulated. Makes its interesting, even without illustrating a real life practical example in the video. Also, a true desire to teach.

  • @amankrishna751
    @amankrishna751 Год назад +2

    Give this man an award!

  • @elakhe-llonamlomzale4774
    @elakhe-llonamlomzale4774 3 года назад +2

    Simple and comprehensive, thank you

  • @shreyasingale
    @shreyasingale 3 года назад +2

    Thanks for the lucid explanation!

  • @pallabkumar5775
    @pallabkumar5775 Месяц назад

    That was a wonderful explanation of the Markov chain, thank you

  • @omedhassan2190
    @omedhassan2190 2 года назад +1

    Simple and comprehensive.Thank you soooooo much

  • @kazeemkz
    @kazeemkz 2 года назад

    Spot on delivery Dr, many thanks

  • @hnrajaonarison5034
    @hnrajaonarison5034 3 года назад +1

    I really liked your easy explanation. Thank you.

  • @mohammedalsubaie3512
    @mohammedalsubaie3512 2 года назад +5

    thank you for your video it is well explained, but at 3:19, the matrix isn't supposed to be the way around? I mean the 0.25 shouldn't be in the place of 0.4? because the rows explain the directions, not the columns?

  • @gouthamshiny3346
    @gouthamshiny3346 3 года назад +2

    best explanation I could find on youtube

  • @MuhammadAli-ut1sh
    @MuhammadAli-ut1sh 3 года назад +1

    Awesome , cleared my concept , Thank you !

  • @user-rw9vc9pk1u
    @user-rw9vc9pk1u 3 месяца назад

    Very well explained sir! Thank you.

  • @user-wi1rj4iw9y
    @user-wi1rj4iw9y 2 года назад

    Thank you Dr. Trefor Bazett! 谢谢!

  • @arjunag7553
    @arjunag7553 Месяц назад

    You, Sir, are a Superhero.❤

  • @thomasmale2302
    @thomasmale2302 8 месяцев назад +1

    I liked your explanation it was simple and clear, thank you so much.

  • @skepticbubble3166
    @skepticbubble3166 2 года назад +2

    Our Markovian hero, thanx

  • @oleksandrrechynskyi7636
    @oleksandrrechynskyi7636 3 года назад +5

    that's what I call a straightforward explanation. Thank's a lot!

  • @mr2seis388
    @mr2seis388 Месяц назад

    This guy gave a 6-minute crash course where I started so confused. my man.

  • @OfferoC
    @OfferoC 3 года назад +1

    very good explanation. thank you.

  • @ww905
    @ww905 3 года назад +1

    Wow, I was writing up my thesis on TMMC application to my little chemical adsorption model and I cannot understand the Maths behind it properly. You saved my life.

  • @ayyoubm
    @ayyoubm 3 года назад +1

    GREAT EXPLANATION!

  • @luisanaencarnacion6050
    @luisanaencarnacion6050 Год назад

    Thank you man! This was so helpful☺️

  • @tristanlouthrobins
    @tristanlouthrobins 2 года назад +1

    Incredibly good explanation of Markov Chains. Subscribed!

    • @DrTrefor
      @DrTrefor  2 года назад +1

      Welcome aboard!

  • @Darkev77
    @Darkev77 3 года назад +6

    Brilliant to say the least

  • @interest21stcentury74
    @interest21stcentury74 3 года назад +1

    Wow! Interesting Topic! Thank You for covering something wonderful!

    • @DrTrefor
      @DrTrefor  3 года назад +1

      Glad you enjoyed it!

  • @tongtong168
    @tongtong168 3 года назад +2

    Your explanation is much better than the Khan's Academy lets say. So detailed and so simple to understand.

    • @DrTrefor
      @DrTrefor  3 года назад +1

      Thank you so much!

    • @anti-tankartur677
      @anti-tankartur677 Год назад

      His video is completely wrong about the matrix positioning

  • @praisesharon4241
    @praisesharon4241 3 месяца назад

    Very nice explanation

  • @dewanmohammedabdulahad527
    @dewanmohammedabdulahad527 2 года назад +6

    Thank you for the lecture. It's easy to understand. Do you have any plan on Non-linear control theory (obeviously in easy way llke you taught now)?.

  • @korakatk318
    @korakatk318 Месяц назад +1

    Awesome video!

  • @surgeonrecords
    @surgeonrecords Год назад

    very clear. nice work.

  • @hiamy1250
    @hiamy1250 3 месяца назад

    omg this video helps me a lot! thanks a ton

  • @anya7us
    @anya7us 2 года назад

    Lovely explanation

  • @kekoHere0610
    @kekoHere0610 2 года назад +1

    You just saved me !
    Thanks

  • @BrotherNineinChicago
    @BrotherNineinChicago Год назад +1

    Brilliant explanation thank you :)

  • @justsayin...1158
    @justsayin...1158 9 месяцев назад

    Thank you for this very practical video, I was immediately able to apply this concept, although I didn't immediately understand why multiplying the transition matrix with the current state vector yields the next state vector, but after some further consideration, what this multiplication actually does, it is quite clear, why/how that works.

  • @MrMahankumar
    @MrMahankumar 2 года назад +1

    I cried.
    This was very good

  • @devendraparmar7068
    @devendraparmar7068 5 месяцев назад

    Beautiful video Sir..👌👌

  • @itays7774
    @itays7774 2 года назад +2

    Also, the diagonalization of a general two state transition matrix is quite nice, so taking a high power of one is not so bad

  • @arsenalaman6493
    @arsenalaman6493 3 года назад +2

    Amazing video sirrr......Thank you for video. Loves from India

  • @gautam1940
    @gautam1940 3 года назад +1

    Lovely. I think even Markov would not be able to explain like that !!! Liked and Subscribed!!!

    • @DrTrefor
      @DrTrefor  3 года назад +1

      Thanks for the sub!

  • @taotaotan5671
    @taotaotan5671 3 года назад +2

    So we can apply eigendecomposition to simplify the matrix exponentiation! Thanks Trefor!

    • @DrTrefor
      @DrTrefor  3 года назад +2

      Absolutely! That was beyond the scope of this video, but would definitely be the next thing to do.

  • @HM-he1ob
    @HM-he1ob 2 года назад

    You had shed lights to people like me who suffered a lot from a college class which takes about 90 min

  • @BlackCodeMath
    @BlackCodeMath 3 месяца назад

    Beautiful.

  • @SiriusFuenmayor
    @SiriusFuenmayor 2 года назад +1

    Great! very clear and concise, what is the connection of this with turing machines?

  • @marcocaballero
    @marcocaballero 2 года назад +2

    Great video, thanks!! Any chance to follow up on this topic? Perhaps look into Markov Models?

  • @internationaleconomics2327
    @internationaleconomics2327 2 года назад +1

    Thank you it was usefull

  • @joejoe-lb6bw
    @joejoe-lb6bw 2 года назад +1

    Nice! Even I understood that.

  • @eliasdargham
    @eliasdargham 6 месяцев назад

    Absolutely clear and concise, thank you!
    It worth noting however, that computing the P^n matrix is very computationally expensive, is there a better way to to solve for P^n without having to do the power?

  • @freedmoresidume
    @freedmoresidume 2 года назад

    Incredible 🔥

  • @teflonpan115
    @teflonpan115 2 года назад

    Thank you for confusing me. Great work 👍

  • @arsenalaman6493
    @arsenalaman6493 3 года назад +4

    I am Almina khatun who also comment on our video sir.......I al ways first

  • @currrrrrled
    @currrrrrled 3 года назад

    Fantastic!!

  • @aiswaryavijayan260
    @aiswaryavijayan260 2 года назад +1

    Saved me👏

  • @michaelc.4321
    @michaelc.4321 Год назад

    This just blew my mind because it made me realize that the final convergent state of a markov chain is dictated by the transition matrix's eigenvector corresponding to its largest eigenvalue because the repeated multiplication essentially comprises the power method of finding the largest eigenvector/value.

  • @johnwick-fw7ey
    @johnwick-fw7ey 2 года назад +1

    thanks sir

  • @somcana
    @somcana 2 года назад +1

    Why would some one dislike your Videos. They must be in a dislike Markov state. I wonder when they will transition Dr Trefor Bazett.

  • @krishnarao9912
    @krishnarao9912 7 месяцев назад

    Amazing

  • @highinstitute2366
    @highinstitute2366 4 месяца назад

    Thanks❤

  • @AryanKumar-qo6fi
    @AryanKumar-qo6fi 3 года назад +4

    Respect!!!!!!✌✌ >>>Legend👏

  • @vwlh8r
    @vwlh8r Год назад

    I did not see a link to the video you referenced introducing matrix multiplication

  • @gloriashen2671
    @gloriashen2671 3 года назад

    Best explanation ever!~!!

  • @j.k.sharma3669
    @j.k.sharma3669 2 года назад +1

    Very nice

  • @somenewkid6892
    @somenewkid6892 3 года назад +1

    wow it just so happens to be that the lecture today included transition matrices! what luck!

  • @jjlarochelle2523
    @jjlarochelle2523 Год назад

    How do you find at what value n the S vector will have a given value for x1??

  • @povdata
    @povdata Год назад +1

    I did not get why we calculate s3 if the system has only two states? What is it Sn? Is it number of transitions? If there are two states then we have 4 transitions?

  • @kianushmaleki
    @kianushmaleki Год назад

    Does this non-Markovian system turns into a Markovian system if we let n -> Infinity ?

  • @anaisliu6709
    @anaisliu6709 Год назад

    This is an awsome video however I am still confused that is it possible to calculate the transition matrix using only the initial probabilities? Or calculate the initial probabilities using only the transition matrix?

  • @wesalmegahed
    @wesalmegahed 3 года назад

    So what if I want to predict a specific state, like If I got students degrees and try to predict the average of degree in next semester!? and can I do it for a particular student.!?

  • @dylanhayes6745
    @dylanhayes6745 3 года назад +1

    Legend!

  • @slamburglar909
    @slamburglar909 3 года назад +1

    great video! there's so much more you can talk about concerning markov chains, this is just the beginning! Like how they can limit to some stationary matrix under certain conditions of the transition matrix P, or even easier ways to calculate P^n (if you decompose it such that P=U D U^-1, where U is the matrix of eigenvectors and D is the matrix of eigenvalues, then P^n = U D^n U^-1, where D is simply the matrix of only eigenvalues^n along it's diagonal). They are very interesting indeed, you have your work laid out for you! XD

    • @DrTrefor
      @DrTrefor  3 года назад

      Totally! I am thinking of doing some follows we are just scratching the surface here

  • @lume-eugene.h2161
    @lume-eugene.h2161 2 года назад +1

    Thank you, I think I will be able to ace the CS 70 final exam at Berkeley.

  • @ThabetMarwa
    @ThabetMarwa Год назад +1

    This was absolutely brilliant. This video could also be used to explain quantum spin 1/2; just make a and b stand for spin up and spin down

  • @murthyrallabandi
    @murthyrallabandi 3 года назад +1

    It sounds good, i can apply this to Roulette game! 😅

  • @Darkev77
    @Darkev77 3 года назад +2

    If we were to line up the probability distributions to = 1 along the rows, rather than the columns that wouldn’t work (keeping the vector unchanged). Is that because of how it’s defined, due to the notation used?

    • @DrTrefor
      @DrTrefor  3 года назад +2

      Indeed, it's just a quirk of the definition. If you wanted to do it your way, you'd have to be multiplying with the vector on the left instead, which would be just as good but not as conventional.

  • @duckymomo7935
    @duckymomo7935 3 года назад

    When does a Markov chain converge into steady state?
    How many steps does it take to converge?
    Memory less ness property explained

  • @quant-prep2843
    @quant-prep2843 Год назад +1

    just wow

  • @tmorid3
    @tmorid3 3 года назад +1

    Thank you for the video! where can we find the explanation about matrices multiplication? and in addition - isn't the matrix should be in such a way that the rows represent the state we are currently in and the columns the state in the next week? or it doesn't matter?
    Thanks!!

    • @emilianoterrell2175
      @emilianoterrell2175 2 года назад

      I know Im asking the wrong place but does someone know a tool to get back into an instagram account?
      I stupidly forgot the login password. I love any help you can offer me

    • @thaddeuskeanu8456
      @thaddeuskeanu8456 2 года назад

      @Emiliano Terrell instablaster ;)

    • @emilianoterrell2175
      @emilianoterrell2175 2 года назад

      @Thaddeus Keanu Thanks so much for your reply. I got to the site thru google and Im trying it out atm.
      Looks like it's gonna take a while so I will get back to you later with my results.

    • @emilianoterrell2175
      @emilianoterrell2175 2 года назад

      @Thaddeus Keanu it worked and I actually got access to my account again. I'm so happy!
      Thank you so much you really help me out !

    • @thaddeuskeanu8456
      @thaddeuskeanu8456 2 года назад

      @Emiliano Terrell glad I could help :)

  • @anishjoshi1999
    @anishjoshi1999 2 года назад +1

    love from nepal

  • @MyFirstReurveBow
    @MyFirstReurveBow 2 месяца назад

    thank you for your videos . if you will explain the logic behind it and not the matrix structure / equation structure perspective it will be much easier to understand. also first video is not on the list

  • @lucycai3356
    @lucycai3356 3 года назад +1

    at 3:32, I think the row in the matrix should add up to 1. am I correct? Thanks!

  • @simplicitas5113
    @simplicitas5113 Год назад

    I derived this before knowing what it was

  • @nikhilyewale2639
    @nikhilyewale2639 3 года назад

    Nice video. Would the diagonalization of this matrix speed up our process of find the solution at k'th step ?

    • @DrTrefor
      @DrTrefor  3 года назад +2

      Absolutely. That is actually the planned third video in this series I might make at some point.

    • @nikhilyewale2639
      @nikhilyewale2639 3 года назад

      @@DrTrefor Really looking forward for your series ahead. I hope you connect the dots ahead with important applications in physics, biology etc. and also with Markov chain Monte Carlo (MCMC) method. :-)

  • @mxlexrd
    @mxlexrd 3 года назад +3

    This Markov process feels vaguely quantum mechanical to me, the idea of probabilities spreading out over time over multiple states.

  • @bscutajar
    @bscutajar Год назад

    At first I thought the result won't always add up to 1, but it can be easily shown that if both columns of the P matrix and of course the one column of the S matrix add up to 1, the product's column will also add up to 1.