Video není dostupné.
Omlouváme se.

Curve fitting in Python with curve_fit

Sdílet
Vložit
  • čas přidán 15. 08. 2024
  • A detailed description of curve fitting, including code snippets using curve_fit (from scipy.optimize), computing chi-square, plotting the results, and interpreting curve_fit's covariance estimate. Example code at gitlab.com/Car...

Komentáře • 55

  • @galaxysplus2011
    @galaxysplus2011 Před 4 lety +9

    Thank you, Sir! This was brilliant. Such a difficult topic so nicely explained. I learned very much by watching this video and going through your example code as well.

  • @lktyagi88
    @lktyagi88 Před 4 lety +1

    Aamzing job! I have seen so many shallow people delivering heavy concepts but you just nailed everything down to the details..Awsome Job..

  • @ARBB1
    @ARBB1 Před 5 lety +3

    I accidentally ignored this video; *my savior has finally returned*

  • @hsinghal1
    @hsinghal1 Před rokem

    That was brilliant. It was really hsrd to go through the mathematical jargon available on internet. Thank you for nice explanation.

  • @rafaelem7174
    @rafaelem7174 Před 4 lety +2

    If I could give you 200k likes I'll do it. I love your simple explanation of the covariance interpretation

  • @dainisk586
    @dainisk586 Před 4 lety +1

    What an absolute unit. Great cheers to you, mate, you saved my ass big time. Bonzer job on explaining the material better than my profs

  • @nkanyisombatha5384
    @nkanyisombatha5384 Před 2 lety

    Very nice video
    Brant Carlson. You may have forgotten that it is t^2 at 4.o6 min. Thanks a lot for this best class.

  • @marextrem1
    @marextrem1 Před 2 lety

    Thanks for the Videos, Please keep going, science deserves it !!

  • @giovannisucci5624
    @giovannisucci5624 Před rokem

    Thank you for this lesson Dr. Carlson. Very nice and clear.

  • @Chatterjeepal
    @Chatterjeepal Před 5 lety +4

    THE BOI IS BACK :bless::bless::bless::bless::bless::bless::bless:

  • @PatrickBrowne
    @PatrickBrowne Před 4 lety

    Thanks for the video and the code examples ! It was very easy to build upon.

  • @PotatoForce42
    @PotatoForce42 Před 3 lety

    This video is awesome. Thank you very much for the detailed explanation

  • @XanderGouws
    @XanderGouws Před 5 lety +3

    HE'S BACK BOYS

  • @samuelhughes
    @samuelhughes Před 8 měsíci

    You saved me man, thank you so much

  • @anfilaot
    @anfilaot Před 3 lety

    You saved me, and I wish you had more videos!!!

  • @000bHd000
    @000bHd000 Před 5 lety +12

    OH SHOOT HE BACK

  • @tritruong7867
    @tritruong7867 Před 5 lety +4

    PROFESSOR I MISSED YOU :D

  • @sjamielm
    @sjamielm Před 4 lety

    Great job and very useful content

  • @mclark23
    @mclark23 Před 3 lety

    Excellent. I like the math lesson!!!!!!!!!!!

  • @cd8836
    @cd8836 Před 2 lety

    Thank you!

  • @arupmarik
    @arupmarik Před 5 lety +2

    Sir please upload more Videos on physics like old quantum theory..etc

  • @canowow11
    @canowow11 Před 4 lety

    incredible video, thank you very much

  • @mclark23
    @mclark23 Před 3 lety

    You know, I've taken may statistical classes (but not in college) and a lot of this is new...

  • @tonycardinal413
    @tonycardinal413 Před rokem

    Thank you so much for posting this. Ques: If there is a high covariance between the parameters why is this bad? I'm not understanding why this would be bad. thanx!

  • @aneedfortheory
    @aneedfortheory Před 4 lety +3

    Hello Brant. Great video! One thing though. Is your formula for the chi-squared statistic correct? I appreciate your detailed explanation of the formula but when I tried to source the formula online, the division of each of the n terms isn't by the uncertainty in the respective terms/contributions but rather the contributions themselves. There is another formula in which the mean is subtracted from each of the data values and then divided by the uncertainty. Is this latter expression the one you were after?

    • @AlenvertDiexon
      @AlenvertDiexon Před 4 lety

      Hello Brant, thanks for the great video. I also know the formula with ((Observation-Expectation)**2) / Expectation.

    • @jeremyblow1603
      @jeremyblow1603 Před 4 lety

      See "reduced chi-squared statistic" which uses a weighted sum of squared deviations.

  • @igoaaronlu8142
    @igoaaronlu8142 Před 2 lety

    good job thank you

  • @mariohernandez6905
    @mariohernandez6905 Před 3 lety

    Thank you very much!

  • @maxhansen5166
    @maxhansen5166 Před 3 lety

    very good tutorial. However it would be much better to have the imports on the slides or maybe at least import the packages with aliases. Would make it much more convenient to follow, particularly if you don't have the exact function assignments present.

  • @mclark23
    @mclark23 Před 3 lety +2

    I made a folder called "Great" and I put the link to this there...

  • @murilotimo
    @murilotimo Před 4 lety

    Excelente aula, Muito Obrigado.

  • @ayanwoyegideon8058
    @ayanwoyegideon8058 Před 3 lety

    Great video. I am working on a task that involves curve fitting a curve on another curve (or say data points) and I can't seem to be getting it. The curve I want to fit was generated with a UnivariateSpline of degree 5 and hence don't know how to generate it's mathematical function/representation that I can use with the curve_fit function. I need help please.

  • @TheAteris1
    @TheAteris1 Před 4 lety

    It was a very nice "lecture", would it be possible to get one on the ODR package to fit in python?

  • @oAbraksas
    @oAbraksas Před 4 lety +2

    What if there are errors on both axes?

  • @trouserpython3857
    @trouserpython3857 Před 4 lety

    Thanks bro

  • @paulbalduin
    @paulbalduin Před 9 měsíci

    how do I include an uncertainty in both the x and the y value? does curve_fit only work for fits that include only the uncertainty for the y variable?

  • @tritruong7867
    @tritruong7867 Před 5 lety

    Can we get more advanced topics in QM pls???? thanks professor!

  • @albasitdanoon7211
    @albasitdanoon7211 Před 5 lety

    excellent video, thanks. what if we dont have a mathematical function, I have two columns of data, one observed and one expected , how would that look like in python script? Thanks.

    • @vanarsamadi
      @vanarsamadi Před 5 lety

      Plot first your data, and then look for a model that have the shape of the data Plot

  • @KarthikeyanMmmm
    @KarthikeyanMmmm Před 3 lety

    hello sir , is there any similar package in python as curve fit , in which we can able to impose some constraints ( like suring regression at a particular point slope should be a specific value) during regression, or is there any posiblity in curve_fit to impose some constraints

  • @colessa366
    @colessa366 Před 4 lety

    can you please do actual work in python? The theory is good but I didn't understand a thing about how actually code from scratch.

  • @coscinaippogrifo
    @coscinaippogrifo Před 3 lety

    Can someone tell me where I can find the library for that interact function called at 13:45, please?

  • @XanderGouws
    @XanderGouws Před 5 lety +2

    Would you consider making a video about how the curve_fit() function works?

  • @saidteacher3331
    @saidteacher3331 Před 4 lety +1

    Doctor how important for a physics student Masters to know coding?.

    • @theojaya7798
      @theojaya7798 Před 4 lety +2

      virtually none. i graduated with a physics degree with very little coding skills, i only knew very basic matlab because thats all you need really. But seriously please learn how to code even just the basiscs, help a lot with calculation and projects

  • @b354ramen8
    @b354ramen8 Před 5 lety

    dear proffosor Hi : we waiting elektromagnetic theory lecture. So ?

  • @neopalm2050
    @neopalm2050 Před 5 lety

    you're back?

  • @andrzejolczak8924
    @andrzejolczak8924 Před 3 lety

    What kind of device do you use for handwriting?

  • @harsharajendran41088
    @harsharajendran41088 Před 3 lety

    how to put initial conditions for gaussian model

  • @ing.nicola1706
    @ing.nicola1706 Před 4 lety

    wath do you use for writing on video ?

  • @r2ei64
    @r2ei64 Před rokem

    .