Тёмный

How to fit non-linear equations in excel using solver 

Taylor Sparks
Подписаться 33 тыс.
Просмотров 261 тыс.
50% 1

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

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 323   
@matthulvey8615
@matthulvey8615 2 года назад
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 2 года назад
You are absolutely correct. Thanks for pointing that out.
@jackt9535
@jackt9535 8 месяцев назад
Thanks! However, when data are not just near model floats, excel can fail... That is not the case with numpy
@feynstein1004
@feynstein1004 Год назад
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 Год назад
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 Год назад
@@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 😃
@michealcairns4971
@michealcairns4971 4 года назад
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.
@ahmedabaza9790
@ahmedabaza9790 3 года назад
Guys, how you calculate the R2 in that case ??
@meganmcgee8187
@meganmcgee8187 5 лет назад
This is amazingly helpful! I watched numerous videos trying to do logistic regression fitting and this is the only one that helped me!
@TaylorSparks
@TaylorSparks 5 лет назад
So glad to help!
@zahraghassemi2686
@zahraghassemi2686 3 года назад
Same happened to me. Thank you.
@pragyandash6521
@pragyandash6521 2 года назад
Same for me
@bwiredenis898
@bwiredenis898 2 года назад
Thanks a lot, very helpful. I got it
@chadmace3355
@chadmace3355 4 года назад
all these years I've always used Matlab or Python... Often find myself in Excel... this will work well. Thank you!
@ErrysFrondarina
@ErrysFrondarina 9 месяцев назад
very helpful, thank you sir!
@IrishJade84
@IrishJade84 Год назад
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 Год назад
Feedback like this makes me so happy.
@dr_drw
@dr_drw 4 года назад
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. 🙉
@bobrivera6667
@bobrivera6667 2 года назад
It was very helpful, thank you
@tibistibility
@tibistibility 3 года назад
How would you get the R^2 value from a nonlinear regression fit?
@kiendagaetanvianneyramde27
@kiendagaetanvianneyramde27 4 года назад
You’re amazing boyyyy!!! You just solved one of my chemical engineering project .Thanks
@TaylorSparks
@TaylorSparks 4 года назад
Glad to help!
@sandinomichaelangeloaguila3823
@sandinomichaelangeloaguila3823 3 года назад
hi fellow chemical engineer
@Jehosafath
@Jehosafath 3 года назад
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.
@sanadaltarawneh3550
@sanadaltarawneh3550 4 месяца назад
You are a legend.
@Dngsz6565
@Dngsz6565 28 дней назад
Thank you for help.. I tried to obtain wavefunction (800-data). Result: Great!! thanks 🎉🎉
@childhoodforever223
@childhoodforever223 5 месяцев назад
Thank you _/\_
@staygreasy
@staygreasy 2 года назад
Is there a way to modify that equation so that the graph is flipped horizontally?
@georgehellas8184
@georgehellas8184 3 года назад
Thanks, you literally saved me trying to interpolate a sine wave to data that looked like a sine wave. Again thanks!!!!!
@TaylorSparks
@TaylorSparks 3 года назад
My pleasure!!
@alaad1009
@alaad1009 7 месяцев назад
Great video
@esraelsamuel1473
@esraelsamuel1473 3 года назад
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.
@barbarakiewe2870
@barbarakiewe2870 Год назад
CURVEFIT Version 2.10N March 1, 1987 by Thomas S. Cox SHAREWARE
@budongbudong4411
@budongbudong4411 7 месяцев назад
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?
@حلفانكوارقينوكي
Excellent!
@JacolbyG
@JacolbyG 2 года назад
ty
@Aminulchem
@Aminulchem 2 года назад
Good
@TaylorSparks
@TaylorSparks 2 года назад
Good ;)
@CivilEngineeringStuff
@CivilEngineeringStuff 2 года назад
Thank you. Great Explanation. Very helpful
@rogelv8td
@rogelv8td 10 месяцев назад
Thanks, very useful and quick video.
@emihlengqeme6823
@emihlengqeme6823 5 лет назад
Wow thank you so much...i now have a clear understanding of this work
@Thanasis_Tsiris
@Thanasis_Tsiris 4 месяца назад
When I calculate the Y values with my model and then put them in a data set for the chart, i just have some theoretical points that correspond to the experimental points, i don't have a theoretical line. If i choose for the chart to plot the theoretical dataset as a line and not as points it just connects the theoretical points with straight lines instead of plotting my function with my calculated constants. I can get around it by calculating points for very small steps of the x value so there are many small straight lines that emulate a curve but it takes a lot of time and I feel that there is another way for the line to just represent the equation. Any solutions? Thanks to everyone that read this. *ps I'm using Libre Office Calc and not Excel but I do not think it really matters
@NOx2N2
@NOx2N2 10 месяцев назад
good information. Goes pretty fast. I can't quite get my S shape curves to fit close enough. Any suggestions?
@RAVIKIRANMudunuru
@RAVIKIRANMudunuru Год назад
How can I estimate the parameters alpha and beta in a gompertz function based on the historical data, so that I can predict the values into the future.Want to know specifically how can I do that in the SPSS
@coltonsowsun3681
@coltonsowsun3681 3 года назад
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.
@TaylorSparks
@TaylorSparks 3 года назад
Right? Makes a big difference
@nipunweerakoon_97
@nipunweerakoon_97 2 года назад
This is really helpful.Thank you so much.😃😃
@U20ME207JaiSingrodia
@U20ME207JaiSingrodia 6 месяцев назад
Hey!! Can we do this by using any programming language??
@ganesharya3512
@ganesharya3512 2 года назад
in the case of one independent variable equation can be guessed(by a plot) but how can I guess the equation in the case of more than one independent variable. suppose two independent variables (volume fraction and temperature ) then how can I guess the equation for fitting on excel (only by excel)
@muthuprithivi744
@muthuprithivi744 4 месяца назад
How did you got the y fit values in the graph ?.. for me the y fit line is not coming in the graph. Can you tell how to do that?
@mjmeternal2696
@mjmeternal2696 11 месяцев назад
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.
@dr.ajaysujan2258
@dr.ajaysujan2258 2 года назад
Explain everything in very easy manner... Nice job
@TaylorSparks
@TaylorSparks 2 года назад
Heck ya
@halilyilmaz3586
@halilyilmaz3586 2 года назад
Well explained. Thank you.
@TaylorSparks
@TaylorSparks 2 года назад
💪🏻💪🏻💪🏻
@motriz-industrial6846
@motriz-industrial6846 Год назад
Thanks!! Is there software that allows me to find the equation based on XY data but not using any known model?
@alialtaie4770
@alialtaie4770 4 года назад
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?
@eqwan
@eqwan 2 года назад
Awesome video! Helping me with my studies. Thanks a lot!
@collegemathematics6698
@collegemathematics6698 4 года назад
Greatest curve fitting vedio.. Thank you. 🌹 🌹
@TaylorSparks
@TaylorSparks 4 года назад
Why thank you!
@collegemathematics6698
@collegemathematics6698 4 года назад
@@TaylorSparks you did great jobe. You deserve a big thanks. 🌹
@sajjadali6147
@sajjadali6147 4 года назад
After usisng that , can i have R2 and p values for the variables?
@albertlee7433
@albertlee7433 5 лет назад
Wow.... you teach me what i really want. Thanks a lot!!!
@George-rq1yp
@George-rq1yp 6 месяцев назад
wow very helpful demo, thank you!
@emilyreeves3234
@emilyreeves3234 8 месяцев назад
Does anyone know where the A value is taken from? or is it just 1 as a standard?
@hoseinpahlavan9295
@hoseinpahlavan9295 3 года назад
Thanks Taylor . That's very helpful:)
@biubiuedel1248
@biubiuedel1248 Год назад
how you put that fit line in your graph? I just can put x and Y axis only and do not know how to insert that fit line.
@karankotian04
@karankotian04 3 года назад
Thank you so much. It helped me a lot. Your explanations are simple and very efficient.
@aditibahuguna7723
@aditibahuguna7723 3 года назад
Thank you so much, great explanation.
@bhukyarajkumar8676
@bhukyarajkumar8676 3 года назад
Thank you sir Nice explanation
@liatzavodivker8087
@liatzavodivker8087 5 лет назад
THANKS! Your explanation was super clear!
@TaylorSparks
@TaylorSparks 5 лет назад
Glad to help!
@zainsaeed147
@zainsaeed147 11 месяцев назад
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 11 месяцев назад
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.
@bb-uc7hn
@bb-uc7hn 3 года назад
Can someone help me create a master curve using time temperature superposition principle shift?
@InfinityLRDL
@InfinityLRDL Год назад
Thank you 🙏 solve my question within 6 min lol. I’m trying to do my homework for mass transfer and needed this
@TaylorSparks
@TaylorSparks Год назад
Pleasure to serve!
@michaelze6832
@michaelze6832 2 года назад
Thank you, that was really helpful.
@zahrahizati
@zahrahizati 2 года назад
Do you know how to find r-squared value? To see the best fit
@nivedithareddy5279
@nivedithareddy5279 6 месяцев назад
Can we find the goodness of fit (GoF) from this?
@chandrakanthmalyala1942
@chandrakanthmalyala1942 2 года назад
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.
@saidfigueredo
@saidfigueredo 3 года назад
My english listening is very very bad, but it was no a problem for I reproduce your procedure, excellent, thank you so much bro
@TaylorSparks
@TaylorSparks 3 года назад
Super glad to help!
@mishellluna7211
@mishellluna7211 3 года назад
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 года назад
Sure, give it a try and see how it fits. You can calculate the r squared if you like.
@Monkeysal07
@Monkeysal07 2 года назад
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.
@gaidanny
@gaidanny Год назад
hi, what if i have to run a macro each time? then how to use solver in a sheet with macro?
@chandrakanthmalyala1942
@chandrakanthmalyala1942 2 года назад
I never knew about plot digitizer before watching your video and going through the description
@TaylorSparks
@TaylorSparks 2 года назад
It's so great
@Asmelash2023
@Asmelash2023 3 года назад
Helpful, thank you so much
@Prixi33
@Prixi33 3 года назад
This video helped me so much thank you man
@Yomohayaru
@Yomohayaru 2 года назад
this make me more understand about sigmoid value. Thank you!!!
@TaylorSparks
@TaylorSparks 2 года назад
Heck ya homie!
@alexhands8229
@alexhands8229 2 года назад
Amazing video, love your work, saved my chemistry degree xxxx
@TaylorSparks
@TaylorSparks 2 года назад
Woohoo!! This feedback makes me so happy. You might like our materials science podcast "Materialism." Drop us a review if you can.
@violajb3960
@violajb3960 8 месяцев назад
god bless you
@TaylorSparks
@TaylorSparks 8 месяцев назад
Lol. Now go forth and fit all the data 📈
@bowenqin8013
@bowenqin8013 3 года назад
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.
@divyeshbhuva
@divyeshbhuva Год назад
It is helpful. However, I need some further help regarding this topic. Please let me know, How can I contact you. Thank you.
@TaylorSparks
@TaylorSparks Год назад
sparks@eng.utah.edu
@FunWithBits
@FunWithBits 3 года назад
well explained , Thank you
@shalinivijayekumar3515
@shalinivijayekumar3515 3 года назад
lifesaver!
@wangwang6245
@wangwang6245 3 года назад
very helpful!! 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 Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--rW0q11JMag.html
@ozandemir8822
@ozandemir8822 2 года назад
This is one of the most beautiful video on youtube. God! It's so good.. Thank you!
@TaylorSparks
@TaylorSparks 2 года назад
Lol. Glad to help friend!
@ruslanakbar2730
@ruslanakbar2730 3 года назад
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. ;)
@potatofries571
@potatofries571 2 года назад
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!
@TaylorSparks
@TaylorSparks 2 года назад
I gotchooo boo
@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/
@panoskb9405
@panoskb9405 Год назад
What if we don't know the equation?
@theblueshade_
@theblueshade_ 2 года назад
Helped me a lot, thanks
@apnaphysics_
@apnaphysics_ Год назад
very helpful,keep uploading this type of content
@TaylorSparks
@TaylorSparks Год назад
Got a specific need?
@rexkurosaki9368
@rexkurosaki9368 4 года назад
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.
@rozhinmkian6325
@rozhinmkian6325 3 года назад
Now this is magic! Thanks alot, very helpful!
@TaylorSparks
@TaylorSparks 3 года назад
Glad to help! Please like subscribe and share!
@christiankeza
@christiankeza 3 года назад
thank you so much, Sparks. now I can defend my thesis!
@TaylorSparks
@TaylorSparks 3 года назад
wow! I'm so glad to help! Good luck on your defense.
@felipearandadelgado6873
@felipearandadelgado6873 2 года назад
Hey Taylor! Thanks for the video. Actually I know how to do it in excel. Do you have a video to do it in R STUDIO? or do you have a link to do it? Thanks a lot in advance!
@TaylorSparks
@TaylorSparks 2 года назад
Sorry buddy, I have never used R. I'm a python or die kind of guy ;)
@KamalSingh-dn7gv
@KamalSingh-dn7gv 3 года назад
I have one word. Beautiful video. Thanks
@TaylorSparks
@TaylorSparks 3 года назад
Heck ya!
@pacharapongtongmee1684
@pacharapongtongmee1684 3 года назад
This is f*cking great!!! This helps me to pass my assignment
@TaylorSparks
@TaylorSparks 3 года назад
Glad to help homie
@talaldaghriri6234
@talaldaghriri6234 Год назад
What if have one response variable, and four factors ( four independent variables)? How is the equation going to be?
@TaylorSparks
@TaylorSparks Год назад
It depends on what the data looks like. There are infinite possible solutions. You need to select an equation that has the general form of what you're trying to achieve. Even versus odd functions, are you looking for asymptotes, steady versus rapid decline etc
@donxevir
@donxevir Год назад
Thank you. Saving a students life rn.
@kazanrao
@kazanrao Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE--rW0q11JMag.html
@chadakarnsirasitthichoke9359
@chadakarnsirasitthichoke9359 3 года назад
Thank you. This is very useful!
@andreiturcan9692
@andreiturcan9692 Год назад
Hey, thank you for the video. What if my graph goes from high values to lower values?
@TaylorSparks
@TaylorSparks Год назад
-(previous eq minus highest positive value)
@KostasGiotis
@KostasGiotis Год назад
amazing, thanks!
@chandrakanthmalyala1942
@chandrakanthmalyala1942 2 года назад
Thank you. That helps
@hassanelbari8636
@hassanelbari8636 4 года назад
Thank you Taylor for sharing this very important video
@TaylorSparks
@TaylorSparks 4 года назад
Glad to help! Sub to see more content.
@muthuprithivi744
@muthuprithivi744 5 месяцев назад
What type of graph are you using in this vedio.. can you mention its name and how you got that y fit in graph?
@TaylorSparks
@TaylorSparks 5 месяцев назад
The equation I'm using is called the Avrami equation. It's used in modeling polymer crystallization vs time as well as other structural transformations in materials science. It has a nice S shaped curve that we can fit to other S shaped data.
@timr3621
@timr3621 2 года назад
You explained it in 6 minutes better than my docent in 2 90min sessions, thank you so much!!
@TaylorSparks
@TaylorSparks 2 года назад
Glad to help dude!
Далее
Solver in Excel for Non-Linear Fit Plotting
6:21
Просмотров 94 тыс.
Curve Fitting in Python (2022)
24:50
Просмотров 95 тыс.
КОТЯТА В ОПАСНОСТИ?#cat
00:36
Просмотров 1,6 млн
pumpkins #shorts
00:39
Просмотров 21 млн
Ко мне подкатил бармен
00:58
Просмотров 142 тыс.
Multiple Regression in Excel
11:02
Просмотров 771 тыс.
Curve Fitting with CFTOOL - MATLAB for Non-Believers
8:28
Nonlinear Model Fitting using Excel
15:05
Просмотров 278 тыс.
Non-Linear CURVE FITTING using PYTHON
11:37
Просмотров 77 тыс.
13 How to Find the Equation of Non Linear Data
22:31
Просмотров 169 тыс.
Linear Least Squares to Solve Nonlinear Problems
12:27
Creating and plotting custom functions in python
13:02
КОТЯТА В ОПАСНОСТИ?#cat
00:36
Просмотров 1,6 млн