How to fit non-linear equations in excel using solver

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • Tutorial of how to fit non-linear curves in excel using solver. This tool lets you fit custom equations to your data. For example in this example we fit data to a modified version of the Avrami equation.
    Thanks to Ozkar and Finke for their data and if you want to learn how to grab data from papers using WebPlotDigitizer, check out my video tutorial.
    • Tutorial of WebPlotDig...

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

  • @amishsattelitedish8615
    @amishsattelitedish8615 3 года назад +43

    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.

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

    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 😃

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

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

  • @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.

  • @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!

  • @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!

  • @potatofries571
    @potatofries571 3 года назад +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!

  • @charlierettner5286
    @charlierettner5286 4 года назад +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!

  • @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. ;)

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

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

  • @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!!!!!

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

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

  • @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

  • @sergiopipaonalcibar7885
    @sergiopipaonalcibar7885 4 года назад +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.

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

    Explain everything in very easy manner... Nice job

  • @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.

  • @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

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

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

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

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

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

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

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

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

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

      Super glad to help. Thanks for tuning in.

  • @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.

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

    Short, direct and extremely helpful

  • @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

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

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

  • @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.

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

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

  • @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).

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

    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.

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

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

  • @roykeyer2174
    @roykeyer2174 3 месяца назад +1

    Perfect video! Thanks for your great instruction

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

      @@roykeyer2174 Happy to help!

  • @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.

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

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

  • @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.

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

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

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

    Thank you. Saving a students life rn.

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

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

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

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

  • @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.

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

    I have one word. Beautiful video. Thanks

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

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

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

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

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

    very helpful,keep uploading this type of content

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

    Thank you. Great Explanation. Very helpful

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

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

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

    Thanks, very useful and quick video.

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

    Now this is magic! Thanks alot, very helpful!

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

      Glad to help! Please like subscribe and share!

  • @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. 🙉

  • @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.

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

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

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

    This helped me A LOT! Thank you!

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

    amazing video! Very good job!

  • @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. 🌹 🌹

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

    wow very helpful demo, thank you!

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

    THANKS! Your explanation was super clear!

  • @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

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

    Helped me a lot, thanks

  • @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

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

    Thanks a lot, very helpful. I got it

  • @architkulkarni4873
    @architkulkarni4873 4 месяца назад +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?

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

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

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

    It was very helpful, thank you

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

    Well explained. Thank you.

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

    very helpful, thank you sir!

  • @mkadkfa
    @mkadkfa 2 месяца назад +1

    v.v. helpful thank you bro

  • @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.

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

    This video helped me so much thank you man

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

    You are a legend.

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

    Thank you so much, great explanation.

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

    thanks a lot its very helpful i really appreciate it 🙏

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

      Glad to help! Check out our podcast Materialism available as a playlist on my channel 😁😁😁

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

    THANKS! Your explanation is awesome! It is helpful!

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

    well explained , Thank you

  • @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.

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

    Very helpfull tutorial, thanks!

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

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

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

    Thanks Taylor .
    That's very helpful:)

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

    Thank you sir
    Nice explanation

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

    Excellent!

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

    Great video

  • @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!

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

    This is f*cking great!!! This helps me to pass my assignment

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

    very helpful!! thanks!!

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

    This is very helpful! Thank you so much...

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

    Thank you. This is very useful!

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

    I benefitted. Thank you

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

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

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

    Helpful, thank you so much

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

    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?

  • @Jehosafath
    @Jehosafath 4 года назад +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.

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

    This was so helpful! Thank you!

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

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

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

    so so great, thanks a whole lot

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

    very nice work good work are there any other videos presenting the same ideas?

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

    Gracias hermano! me ayudaste!

  • @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!

  • @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?

  • @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.

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

    Great vid thx man!

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

      Thanks dude! Like, sub, and share to help me grow. What else would be helpful to see?

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

    Thanks! simple, and very useful!

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

      Thanks! Like share and sub so I can grow the channel!