Video není dostupné.
Omlouváme se.

Least Squares Fit and Graphing in Python

Sdílet
Vložit
  • čas přidán 10. 07. 2023
  • Here is how to make a least squares linear fit (linear regression) in python using numpy and matplotlib.pyplot.

Komentáře • 3

  • @fizixx
    @fizixx Před rokem +2

    Love linear regression. I have a few of these in python, with various amounts of 'bling', which I love too.
    In case you didn't know; in Colabs, if you have several code cells, you can put text cells above them, and add a title (or whatever you like), but if you do this, Colabs creates a Table of Contents (ToC). You access it by clicking on the three horizontal line in the upper left. What's nice about this is they are 'clickable'. So if you have a number of these text/code pairs, you can quickly find and access them using this ToC.
    For example: I have a bunch of Ohm's Law stuff. One for resistance, one for current, one for voltage, and then I added the various components in series, parallel and so on. By the time you're done you have a good collection of small and useful code pieces you can find quickly in the ToC.

  • @facefamousee
    @facefamousee Před 4 měsíci +2

    beautiful. 👍thank you.👌

  • @chyldstudios
    @chyldstudios Před rokem +3

    I use sklearn.linear_model.LinearRegression for all my regression needs in Python. Statsmodels is cool too :)