How to fit non-linear equations in excel using solver

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

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

  • @matthulvey8615
    @matthulvey8615 3 года назад +41

    Very helpful. One thing to note. The real reason we square the residuals is to ensure that that we are not minimizing the sum with positives and negatives. Being on either side of the fit is an error, but if left unchecked a residual of 0.1 and -0.1 would equate to zero when in fact they should be agnostic to which side the error occurred and sum to 0.2 . To fix that we square the values and everything is positive, thus finding the "least squares" gives us the best fit. I don't know if that is what you were implying in the video, but I did not hear that called out.

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

      You are absolutely correct. Thanks for pointing that out.

  • @michealcairns4971
    @michealcairns4971 4 года назад +15

    As a researcher myself investigating heterogeneous behavior, this short tutorial was extremely helpful. Brilliant explanation, Subscribed!

    • @TaylorSparks
      @TaylorSparks  4 года назад

      Thank you!! Let me know what else would be helpful!

    • @michealcairns4971
      @michealcairns4971 4 года назад

      @@TaylorSparks Is there any other way of further optimising the solvers fit within excel?

    • @TaylorSparks
      @TaylorSparks  4 года назад

      @@michealcairns4971 I'm sure there is. I'm not an expert in using Excel's solver though.

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

    I have watched so many videos on how to do this and this is the first one that actually made sense and where I actually understood what components went where. Amazing! Thank you so much!

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

      Feedback like this makes me so happy.

  • @meganmcgee8187
    @meganmcgee8187 5 лет назад +42

    This is amazingly helpful! I watched numerous videos trying to do logistic regression fitting and this is the only one that helped me!

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

    Great explanation. Straight to the point and without missing any necessary details. I'll look at your videos for future questions.

  • @feynstein1004
    @feynstein1004 Год назад +6

    I'm here from July 2023 and I'd like to say that this is EXACTLY how neural networks are trained. I watched Andrej Karpathy's full coding of ChatGPT and this is exactly what he did there. We have a certain expected output from the network. But the real output is different. We measure the difference i.e. residual i.e. error and work on minimizing that. That's literally all there is to it. The code is just there to make this process easier and find each parameter for billions of neurons.

    • @TaylorSparks
      @TaylorSparks  Год назад +4

      Yeah, a lot of people think machine learning and AI are more sophisticated than they really are. If you are interested in materials informatics I have a whole playlist from a course that I teach here at the University of Utah. Check it out

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

      @@TaylorSparks Wow, didn't expect you to reply so quickly. Or at all 😂 Thanks for the video. It really helped me out. I'll check out your other stuff too when I get the chance 😃

  • @chadmace3355
    @chadmace3355 4 года назад +8

    all these years I've always used Matlab or Python... Often find myself in Excel... this will work well. Thank you!

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

    bruh this explanation goes hard it was so clear and concise, I've tried to read how to use solver from other sources but they were always convoluted and not too useful. this video in contrast was good and efficient thank you!

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

    Hey, Taylor! Just wanted to thank for your all work, from material science to statistics!!!

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

      Thank you so much! Do me a favor and check out our podcast Materialism. You can find it on any platform and we would love to get an iTunes review if you've got a second. ;)

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

    You made it very easy. In order to fit a model, bring any equation and very the parameters then go to Solver to minimise the sum of the squared Residuals (SSR) and this gives the best values for parameters.

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

    You explained it in 6 minutes better than my docent in 2 90min sessions, thank you so much!!

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

    Great job leading us through this so smoothly. I suspect that most people coming here are like me and know what they want Excel to do but had no idea it could do it. It took me about 60 seconds to learn how to use solver from your video, as opposed to never on my own. Thanks!

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

    Thanks, you literally saved me trying to interpolate a sine wave to data that looked like a sine wave. Again thanks!!!!!

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

    Dude, helped me out so much, thought I had to redo all of my measurements for a uni project. Very well done!

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

      My pleasure! Give the video a like, sub and share and it will help me keep making content like this

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

      ruclips.net/video/-rW0q11JMag/видео.html

  • @dr.ajaysujan2258
    @dr.ajaysujan2258 2 года назад +2

    Explain everything in very easy manner... Nice job

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

    i LOVE THE VIDEO, I ASKED MANY PEOPLE ABOUT IT, BUT NONE COULD EXPLAIN ME BETTER. Thank you

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

    Great video. There is a lot of people out there doing super complex explanations for this, but this one is perfect. Thanks a lot.

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

    Short, direct and extremely helpful

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

    Thank You, Taylor. I was trying to fit using MATLAB. However, your video is awesome

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

      Super glad to help. Thanks for tuning in.

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

    a good solution to find the equations for solving "the area of hysteresis" problem. Thank you so much

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

      Great point. Very happy to help.

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

    I never knew about plot digitizer before watching your video and going through the description

  • @architkulkarni4873
    @architkulkarni4873 29 дней назад +1

    Hi Taylor, thank you for such precise explanation. I want to know how can we find uncertainty in fitting parameters and eventually the goodness of the fit?

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

    This is one of the most beautiful video on youtube. God! It's so good.. Thank you!

  • @kiendagaetanvianneyramde27
    @kiendagaetanvianneyramde27 5 лет назад +5

    You’re amazing boyyyy!!! You just solved one of my chemical engineering project .Thanks

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

    My english listening is very very bad, but it was no a problem for I reproduce your procedure, excellent, thank you so much bro

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

    Thank you! I just started a statistics class and I did not understand the residual until I saw it happen, visually, on your graph.

  • @leilanemdili3724
    @leilanemdili3724 4 года назад +1

    This is the best video that explained the regression fitting. Thank you!

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

    Absolutely excellent, enjoyable, clear and precise. Well done sir!

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

      Thank you so much. I'm super glad to help

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

    Thank you. Saving a students life rn.

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

      ruclips.net/video/-rW0q11JMag/видео.html

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

    Thank you for the clear introduction! Like another commenter I am trying to fit dose response curves which all have starts of 0, and it goes very odd, but you've got me further in a few minutes than I expected and opened my eyes to what's possible in excel (I don't get coding, despite trying to learn).

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

    Thank you for mentioning that the Solver needs to have a initial best fit that is somewhat close to the existing data! I tried this method after watching another video, the author failed to mention this and I was very frustrated after spending over an hour going thorough my excel sheet looking for problems that were not there.

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

    Amazing video, love your work, saved my chemistry degree xxxx

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

      Woohoo!! This feedback makes me so happy. You might like our materials science podcast "Materialism." Drop us a review if you can.

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

    Thank you so much. It helped me a lot. Your explanations are simple and very efficient.

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

    Thank you for help.. I tried to obtain wavefunction (800-data). Result: Great!! thanks 🎉🎉

  • @KamalSingh-dn7gv
    @KamalSingh-dn7gv 3 года назад +1

    I have one word. Beautiful video. Thanks

  • @roykeyer2174
    @roykeyer2174 10 дней назад +1

    Perfect video! Thanks for your great instruction

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

    Awesome video! Helping me with my studies. Thanks a lot!

  • @N8Kracken
    @N8Kracken 5 лет назад +1

    Absolutely awesome video. Clear and to the point. Great work mate.

  • @govhull9933
    @govhull9933 4 года назад +1

    Great explanation! Clear and straight to the point. However, the main problem with fitting curve is to find the potential fitting equation to work on :)

    • @TaylorSparks
      @TaylorSparks  4 года назад +1

      Ya. There's no substitute to some basic mathematics. They really are helpful when getting an equation of the right form.

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

    Excellent video - I now use the solver option a great deal in my work. Thank you.

  • @budongbudong4411
    @budongbudong4411 8 месяцев назад

    Hi Taylor, this video is very helpful, thank you. Just have a quick question, for inhibitory non-linear response curve, what equation should be used?

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

    this make me more understand about sigmoid value. Thank you!!!

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

    Thank you for you comprehensive video. I have a simple question, How can we define the error or standard deviation from the fitting constant A, k, n ?? e.g. A+/- something, k +/- something and so on.

  • @christiankeza
    @christiankeza 4 года назад +1

    thank you so much, Sparks. now I can defend my thesis!

    • @TaylorSparks
      @TaylorSparks  4 года назад

      wow! I'm so glad to help! Good luck on your defense.

  • @albertlee7433
    @albertlee7433 5 лет назад +2

    Wow.... you teach me what i really want. Thanks a lot!!!

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

    That was a simple and straightforward explanation. Can you say how did you assume the equation?

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

      From domain knowledge. I've seen that shape before so I figured it would work.

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

    Thank you 🙏 solve my question within 6 min lol. I’m trying to do my homework for mass transfer and needed this

  • @adityamanimishra5053
    @adityamanimishra5053 4 года назад +1

    Its great video. Very short and only informative. Thanks

    • @TaylorSparks
      @TaylorSparks  4 года назад +1

      Glad to help!!

    • @adityamanimishra5053
      @adityamanimishra5053 4 года назад

      @@TaylorSparks I am looking for parameter estimation for a system of ODE direclty without finding its solution. I would be grateful if you suggest anything to me.

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

    Thank you. Great Explanation. Very helpful

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

    This is really helpful.Thank you so much.😃😃

  • @souravnahihoonmain
    @souravnahihoonmain 5 лет назад +1

    Really helpful video I used this in conjunction with Gompertz forecasting equation and found the optimal constants for forecasting shipment nos

  • @liatzavodivker8087
    @liatzavodivker8087 5 лет назад +2

    THANKS! Your explanation was super clear!

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

    very helpful,keep uploading this type of content

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

    This helped me A LOT! Thank you!

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

    Helped me a lot, thanks

  • @rexkurosaki9368
    @rexkurosaki9368 4 года назад +1

    Mr. Sparks thank you very much!! You did me a big favor!!!!!!!!

    • @TaylorSparks
      @TaylorSparks  4 года назад

      oh oh awesome, I'm always glad to help. Do me a favor and subscribe like and share. I'm trying to grow this channel so that more people can find it.

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

    Wonderfull video!!! Very precise and usefull information. I want to try doing this using Origin or R, but I need a video like this.

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

      ruclips.net/video/-rW0q11JMag/видео.html

  • @NOx2N2
    @NOx2N2 11 месяцев назад

    good information. Goes pretty fast. I can't quite get my S shape curves to fit close enough. Any suggestions?

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

    Thank you for the clear explanation.
    May I know, how to solve the linearization if the question Y=a exp (-kt) + b? Will it be ln (Y-b) = ln a - kt? and how to solve in excel when we only have data for Y and t and need to find the constant value, a, b and k?

  • @rogelv8td
    @rogelv8td 11 месяцев назад +1

    Thanks, very useful and quick video.

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

    Now this is magic! Thanks alot, very helpful!

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

      Glad to help! Please like subscribe and share!

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

    Thank you for the explanation! Which model is better to use if I need to fix one curve of catalytic descomposition? It seems like the curve of your video. Can I use the same Avrami equation modified?

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

      Sure, give it a try and see how it fits. You can calculate the r squared if you like.

  • @Warda.H
    @Warda.H Год назад

    This was really useful. If i've calculated the fit how doi calculate the upper and lower limits at 95 % confidence level in excel?

  • @alialtaie4770
    @alialtaie4770 4 года назад +1

    Great explanation but I wounder if I got different trend which equation should be used or same yours?

    • @TaylorSparks
      @TaylorSparks  4 года назад

      It totally depends on your trend. What does it look like?

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

    Thank you so much for this video ! It helped solved a problem I've been working on since Friday. Just one quick question, do you have a source to find the type of equation to use or is it emprical knowledge ? For your case I would've tried a sigmoid function but obviously I would have never gotten the fit you have.

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

      Unfortunately that's where I rely on domain knowledge. There are other routes, such as symbolic regression that can try to find generic shapes but I think domain knowledge is best.

  • @hassanelbari8636
    @hassanelbari8636 4 года назад +1

    Thank you Taylor for sharing this very important video

    • @TaylorSparks
      @TaylorSparks  4 года назад

      Glad to help! Sub to see more content.

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

    Greatest curve fitting vedio.. Thank you. 🌹 🌹

  • @emihlengqeme6823
    @emihlengqeme6823 5 лет назад +2

    Wow thank you so much...i now have a clear understanding of this work

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

    Well explained. Thank you.

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

    It was very helpful, thank you

  • @melkamualebachew2845
    @melkamualebachew2845 4 года назад

    Thanks. I am using this for my thesis regression analysis!!!

  • @elmoreglidingclub3030
    @elmoreglidingclub3030 4 года назад

    Thank you for this clear and succinct explanation!! So, to be clear, is y = A x 1-exp(-kt^n)) the same as writing y = A x 1-(e^-kt^n))? I hope that makes sense...

  • @larryblackwell700
    @larryblackwell700 4 года назад +1

    That was a fantastic video. Great presentation. Thank you

    • @TaylorSparks
      @TaylorSparks  4 года назад

      So glad that it was helpful! Let me know if I can help with another topic. I also appreciate if you can like and subscribe to help me grow my channel.

  • @sanadaltarawneh3550
    @sanadaltarawneh3550 5 месяцев назад +1

    You are a legend.

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

    Fantastic video and explanation. Please let me know if you are familiar with other functions similar to Avrami without an upper bound. Thanks!

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

    Thanks Taylor for the video. The solver in excel i understood well from your explanation. Can you please elaborate more that how i can start with the Y_fit equation just by looking at my data set ??? i mean you choose the exponential equation for your data set ???

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

      Ooh, that's the hardest part! Unfortunately there's no easy shortcut for this. Technically, you can try symbolic regression to try many functions until it finds one that fits well, but mostly you have to do some math text searching.

  • @JackSparrow-yt3qw
    @JackSparrow-yt3qw 3 года назад

    Thanks for the video. Would you please explain how to fit the non-linear data when one do not know the equation at all? For this video, you initially had the idea that which equation may fit such curve. My data have strain-hardening behavior, how may I determine which equation may be suitable for my case? Thanks

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

    Thank you, that was really helpful.

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

    This video helped me so much thank you man

  • @George-rq1yp
    @George-rq1yp 7 месяцев назад

    wow very helpful demo, thank you!

  • @ErrysFrondarina
    @ErrysFrondarina 11 месяцев назад +1

    very helpful, thank you sir!

  • @鄭景鵬-k4v
    @鄭景鵬-k4v 4 года назад

    THANKS! Your explanation is awesome! It is helpful!

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

    Thanks a lot, very helpful. I got it

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

    Very helpful. How would this apply to a stepped y plot? For example X would be 1-10, Y 15%,15%,30%,30%,60%,60%,75%,75%,90%,100%

  • @drandrewsanchez
    @drandrewsanchez 4 года назад +8

    Yes! Thank you! I will be using this for my research as well as for my own educational purposes of modeling covid-19 confirmed cases

    • @TaylorSparks
      @TaylorSparks  4 года назад

      That's wonderful!

    • @tecnocato
      @tecnocato 4 года назад

      Got here for the same reason. Thank you, Taylor!

    • @jannieschluter9670
      @jannieschluter9670 4 года назад

      Reported covid19 cases are forged...

    • @tecnocato
      @tecnocato 4 года назад

      Jannie Schlüter Wear an aluminum foil hat. Problem solved.

    • @jannieschluter9670
      @jannieschluter9670 4 года назад

      @@tecnocato you already wearing it. Nothing gets through your thick melon. 🙉

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

    Hi Taylor, great video. How would the equation change if the curve fitting is not an S-curve (as in your video) but something like a reverse S-curve?

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

      Do negative of expression and then plus 1?

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

    well explained , Thank you

  • @atiliaathira11
    @atiliaathira11 4 года назад +1

    Love the way you explained. Very clear. Thank you so much,

  • @حلفانكوارقينوكي
    @حلفانكوارقينوكي 2 года назад +1

    Excellent!

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

    Thank you so much, great explanation.

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

    Thanks Taylor .
    That's very helpful:)

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

    Absolute legend! I manage to model the behaviour of nitinol using a similar equation, but is there a way of taking the SSR value and converting it to something like R-squared?

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

      Sadly, no. R squared is not valid for nonlinear models. statisticsbyjim.com/regression/r-squared-invalid-nonlinear-regression/

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

    Great video

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

    Hi, thank you so much for your video, the explanation is excellent. If I may ask, In R software there is no solver function (If I am not wrong), you would know a function that would do this work just good as solver in R?

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

      Unfortunately, I'm not as familiar with the solver function in R, I mostly use python

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

    Thank you sir! I now have an answer for my drill T^T. I would like to ask if there is anyway I could check the consistency of the computed constants on the given data? Will I just substitute it on the equation and check if they have the same y? Or do I need correlation?

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

      Nope, plug them in. The sum squared residual can generate the r^2 correlation too

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

    You mention in the beginning of the video that Python would be better software to use to do this kind of fitting. I liked this video and it was helpful but I would like to see you do tutorial on how to do the same thing in Python.

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

      ruclips.net/video/HWwLZP14DG4/видео.html

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

      @@TaylorSparks Oh perfect, thank you very much!

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

    This was so helpful! Thank you!

  • @bhukyarajkumar8676
    @bhukyarajkumar8676 4 года назад +1

    Thank you sir
    Nice explanation

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

    Very helpfull tutorial, thanks!

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

      ruclips.net/video/-rW0q11JMag/видео.html

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

    Thank you very much for a very nice explanation. I understand the whole thing but the constant value. I mean, how do we can decide the best constant value? If anyone can explain it to me, I would appreciate it!!