SciPy curve_fit: What is "pcov"?

Sdílet
Vložit
  • čas přidán 13. 07. 2024
  • Check out my course on UDEMY: learn the skills you need for coding in STEM:
    www.udemy.com/course/python-s...
    In this video I show what errors on optimal parameters obtained using a curve fit actually mean. My video on curve fitting can be found here:
    • Curve Fitting in Pytho...
    Tutorial Playlist:
    • The Full Python Tutorial
    Code:
    github.com/lukepolson/youtube...
    Discord:
    / discord
  • Věda a technologie

Komentáře • 28

  • @eboatwright_
    @eboatwright_ Před rokem +44

    wait..... you mean you're not a bird?

    • @IndianGermanDiaries
      @IndianGermanDiaries Před rokem +1

      Lmfao

    • @rammsund
      @rammsund Před rokem +4

      Nah, Billy just coded up a next level ML model that creates the human avatar you see

  • @henryclay2106
    @henryclay2106 Před rokem +8

    I'm learning about probability density functions (pdf) and cumulative distribution functions (cdf) this week in class. I didn't realize how applicable statistics is to programming.

    • @holthuizenoemoet591
      @holthuizenoemoet591 Před rokem +2

      It's really essential in for example state-of-the-art machine learning. For example, the commonly used SoftMax function is used to turn an arbitrary vector into a pd.

  • @slvfelix
    @slvfelix Před rokem +4

    Great explanation. Also love the basic ones such as the class video from zero. Please do more of those!

  • @robertoparreiras2369
    @robertoparreiras2369 Před rokem +3

    Without any doubt, the best videos on scientific applications of Python. Thank you very much.

  • @martinzapata7289
    @martinzapata7289 Před rokem +1

    Great explanation! Just in time before a lab session where I’ll have to do nonlinear fitting

  • @StasFainer
    @StasFainer Před rokem +2

    Great content! Hope that you'll continue making more of these videos :)

  • @SubhadipDas1
    @SubhadipDas1 Před rokem +1

    You should do a tutorial on Lmfit. It's really advanced and built on top curve fit.

  • @MrR3KK
    @MrR3KK Před rokem

    Awesome, simply a bull's eye explanation

  • @sivadeepak4323
    @sivadeepak4323 Před rokem

    Can you please do a video on linear programming in python with PULP library !!!

  • @divyanshshrimali2651
    @divyanshshrimali2651 Před rokem

    It raised an error even for error bar graph saying: ValueError: 'yerr' must not contain negative values

  • @matteopiccioni196
    @matteopiccioni196 Před 6 měsíci

    Nice
    1. what if using the KDE instead the χ^2 to find the pdf of a set of data, sometimes distributed differently and with some "outliers"?
    2. Why not to use the sklearn to fit quite automatically (without specifying the curve fit equation ) a set of data?

  • @phunmaster2000
    @phunmaster2000 Před rokem

    at 11:01, are the parameters in the formula for a normal distribution flipped?

  • @sambhavgupta4653
    @sambhavgupta4653 Před rokem

    You the best!

  • @sirlimonada2
    @sirlimonada2 Před 2 měsíci

    What if I don't have an error for each point?

  • @frankkoslowski6917
    @frankkoslowski6917 Před 21 dnem

    It was discovered that plt.errorbar() does not tolerate any native yerr_data!
    Thus, your code needed to be modified as seen here:
    yerr_data = np.abs(0.1*np.random.randn(len(x_data)))
    YERROR MUST ALWAYS BE POSITIVE TO AVOID TRACEBACK ERRORS!

  • @gabrielzinatorosa3024

    I Imagine Billy trying to do this. Poor Billy. Not that I would do much better before watching the video 😅

  • @ScienceVocalsMusic
    @ScienceVocalsMusic Před rokem

    Wait why was i expecting a bird to appear?

  • @aaatt268
    @aaatt268 Před rokem

    We don't want u. We want billy.

  • @Fuxx90
    @Fuxx90 Před rokem +1

    It should be N_i(0,1), because you defined N_i(µ, sigma) and always said that sigma should equal 1

    • @Fuxx90
      @Fuxx90 Před rokem

      otherwise, great video of course

  • @claveralvaro6245
    @claveralvaro6245 Před rokem

    Wait guys ... where is the Birdie ?

  • @JustSmile268
    @JustSmile268 Před rokem

    hi billy

  • @antonioparesini912
    @antonioparesini912 Před rokem

    Where billy

  • @nathanwebster1634
    @nathanwebster1634 Před rokem

    😭 *PromoSM*