Curve Fitting in Python (2022)

preview_player
Показать описание
Check out my course on UDEMY: learn the skills you need for coding in STEM:

Tutorial Playlist:

Code:

Discord:
Рекомендации по теме
Комментарии
Автор

That's the scientific channel that we need. Good sound (which is the most important), good picture, Chad-looking science guy (in movies smart people are often nerds with big glasses) and a good explanation - this is really nice! Thank you for video!

mikhailbandurist
Автор

Sometimes one may both know coding and physics but it becomes really exhausting to combine them together; you may not able to know where to start... You are directly attacking to that tricky intersection perfectly and that is exactly what is needed for lots of science students/academics!

I just personally wanted to thank you for such great videos as a PhD student in physics who had worked with paper and pen for years but needed numerical computation eventually. Your videos are awesome and very informing! I hope you keep going.

hakansert
Автор

Two weeks ago I had a physics assignment involving this method, which was a absolute disaster. This is why I should watch your videos as soon as they show up. Anyway, Thanks for the amazing job!

crazyclown
Автор

Nice! Note that (in 19:40) you need to set absolute_sigma=True to get the absolute value errors on the parameters. A good example is using the known formulas to calculate the error on the parameters (A, B) of a strait line fit and compare with the results returning with absolute_sigma=False e absolute_sigma=True.

pythonscientists
Автор

Absolutely love this intro to SciPy's 'curve_fit' function! Suggest you to make a video on spline fitting, which is included into SciPy's 'interpolate' module. With splines it is possible to find best fit to a really complex data, including those presented in this tutorial.

vadympasko
Автор

Your initial guess was good enough 😂, great tutorial!

heera_ai
Автор

The kind of detailed explanation i needed! The examples nailed it! Thanks a lot :)

otaviooliveira
Автор

Great video. Especially focusing and repeating multiple times that our goal is the parameters and not just having a good fit! Parameters = Context = Reason why we're doing the fit

moona
Автор

Great video, just a little correction, as the physicist in me is happy to show himself every now and then: It's actually Lennard-Jones potential, sometimes also called Van der Waals potentials (dipole-dipole potential) big brother. I don't think there's a thing called Leonard-Weibeck potential reguarding atomic repulsion, but if there is and it's related to the LJ potential, let me know!

MrAman
Автор

This is exactly the tutorial I needed given I had to perform many counting experiments . I wish I had found this channel sooner before going insane over tutorials that made zero sense to me.

rainycloud
Автор

Wow! You explain very clearly! I was fighting with my code since I did not understand how to work with curve_fit and you fell out of the sky! Thank you so much!

alejandraacosta
Автор

Thanks a lot! This was a really thorough explanation which gave me everything I need to plot my data in a nice way :) Keep it up!

RutgerHaan
Автор

Hi, first off EXCELLENT VIDEO THANK YOU SO MUCH
Just for those who need this video, there are a couple of clarifications (sorry if you made them and I didnt notice), but its popt, pcov = scipy.optimize.curve_fit

not just curve_fit () . Unless you made a shortcut beforehand

Other than that, thank you again so much help !

nathan
Автор

dude your videos rock, i love the no-nonsense type of attitude when tackling things, cheers! (;

j.abrahamhernandez
Автор

This is excellent content. Clearly explained a problem I've been having trouble grasping for months. Thanks!

maplesyrum
Автор

Super helpful and so nicely explained! Thank you so much for making this video! The multiple examples helped me a lot and in fact covered what I was as looking for!

swatibhargava
Автор

Like 25 years ago i wrote code to fit multiple gauss function to some spectrum comming from Cherenkov radiation emitted from cristals. Those days everythibg had to be done in C/C++. I use the "Numerical recipies in C" book and lib and the Marquard Levenberg algorithm. Took 3 weeks to progam that (including some GUI and other stuff). Today with Scipy maybe one or two days... Some stuff actually get's better.

nothingisreal
Автор

superb video with respect to physics and maths! Best application based explanation. Period. Please I request you to post such concepts with such physics based applications visualisation. I just feel blessed. Thanks a lot. tons

siddharthpachpor
Автор

Thank you for making this video I particularly liked that you gave more than one example.

laurenceturpin
Автор

Was expecting a good description of what's going on with the curve-fitting functions, albeit with boring data. But actually I found exactly what I was looking for. Trying to get the photopeaks and their resolutions in a similar spectroscopy. Also the walking through cell-by-cell helps for digestion. Used to begrudingly use python, but after a semester I much more prefer it over finicky excel sheets.

Bored_Trumpet