Linear Regression with Python in 60 Seconds

  Рет қаралды 109,835

Rob Mulla

Rob Mulla

2 жыл бұрын

Learn about Linear Regression in python in this short!
#python #datascience #shorts

Пікірлер: 70
@jaehuilim7467
@jaehuilim7467 2 ай бұрын
An excellent illustration of Overfitting
@asdeEducation
@asdeEducation 2 жыл бұрын
I hope I remember come back to this video in October
@robmulla
@robmulla 2 жыл бұрын
Haha. Set a reminder! Hopefully we can beat the forecast!
@kartikgoswami
@kartikgoswami Жыл бұрын
Its November
@nirjalkumarmahato330
@nirjalkumarmahato330 Жыл бұрын
It's January
@nirjalkumarmahato330
@nirjalkumarmahato330 Жыл бұрын
It's February 🙃
@alirezouali3119
@alirezouali3119 Жыл бұрын
It’s march
@ferrychandra9934
@ferrychandra9934 7 ай бұрын
Now do this without libraries, except Matplotlib and Pandas 😂
@1_lloyd_146
@1_lloyd_146 Жыл бұрын
Btw, I rlly love this type of video, so make more videos of linear and nonlinear regression plsssss
@robmulla
@robmulla Жыл бұрын
Thanks for the feedback. Will do.
@bashar9200
@bashar9200 Жыл бұрын
Thank you for such wonderful content!! I learn a lot from your codes
@robmulla
@robmulla Жыл бұрын
Thanks for watching
@David-hl9iv
@David-hl9iv 6 ай бұрын
With Linear regression you don't necessarily need to get a line. By choosing different functions as your basis elements for the regression, you can fit any curve to the data, be it exponential or a sine curve. Linear Regression looks to minimize the distance of expected outputs at x to outputs that can be represented by the linear combinations of the functions that you are given, at that point.
@paulantoni1934
@paulantoni1934 2 ай бұрын
Yeah but then we could just go for polynomial regression.
@spazeasterix6723
@spazeasterix6723 Ай бұрын
Although correct in concept, exponentials are rarely practically used. Probably because exponentials are much more sensitive than even polynomial functions and are therefore much more susceptible to overfitting. But as I said, technically, you're implication is correct.
@NicholasRenotte
@NicholasRenotte Жыл бұрын
Rob that keyboard cam is 🔥
@robmulla
@robmulla Жыл бұрын
Thanks Nick. This was my old setup where I had an old webcam precariously attached to a mic stand. It would fall over about once an hour 😂 I need to get your opinion on cameras. Recently invested in better lighting but feel like I’m doing something wrong. Your videos are top notch.
@NicholasRenotte
@NicholasRenotte Жыл бұрын
@@robmulla LOL i've been there, the ol' jerry rigged camera setup 😂. Elgato Multi-Mount arms are a lifesaver!!
@txsw
@txsw 2 жыл бұрын
Love these!! I’ve seen two and they are excellent ideas and useful
@robmulla
@robmulla 2 жыл бұрын
Thanks for the feedback. My first attempts at making shorts. It’s really hard to keep it under a minute.
@broxxad
@broxxad Жыл бұрын
Ey, you should only expect logarithmic regression with your awesome contents.
@robmulla
@robmulla Жыл бұрын
Haha. Thanks!
@Ligress
@Ligress Жыл бұрын
Exponential
@h44r96
@h44r96 Жыл бұрын
Well said 👍
@broxxad
@broxxad Жыл бұрын
@@Ligress logarithmic sounds more realistic.
@Ligress
@Ligress Жыл бұрын
@@broxxad Fine, by the way Do you work in Data feild
@Kashi_Mochibean
@Kashi_Mochibean 6 ай бұрын
I just found this randomly. But it's the most wonderfully-subtly-obvious and nerdiest way I've ever been asked for views and subscriptions. So I'm hitting the button
@boimchartis
@boimchartis Жыл бұрын
Nice video bro👍👍
@robmulla
@robmulla Жыл бұрын
Glad you liked it
@thespicycabbage
@thespicycabbage 11 ай бұрын
you should be using time series
@yunuskaratepe
@yunuskaratepe 5 ай бұрын
I don't understand the idea behind the keyboard cam but cool video :)
@CaribouDataScience
@CaribouDataScience 2 жыл бұрын
You misspelled Ggplot2 😅
@robmulla
@robmulla 2 жыл бұрын
No, I think I got it right. 😉
@halkkoi1538
@halkkoi1538 Жыл бұрын
Wow you are so amazing bro
@robmulla
@robmulla Жыл бұрын
Thanks Halk!
@kadourkadouri3505
@kadourkadouri3505 Жыл бұрын
don't you think a nonlinear least squares model would better fit this data ?
@robmulla
@robmulla Жыл бұрын
Great question. It may be!
@eron1633
@eron1633 Жыл бұрын
I'm kinda new in python and programming,and which interface did you use in this video?)
@robmulla
@robmulla Жыл бұрын
I'm using jupyter lab. I have an intro video that would be perfect for you here: kzbin.info/www/bejne/a6HJYZKYpbOVodk
@satyamARAS
@satyamARAS Жыл бұрын
Reading regression analysis books 😅 .
@1_lloyd_146
@1_lloyd_146 Жыл бұрын
Good work, but im curious what is day_count, is it the total of days or sth? Also, I rll want to have the dataset of this if it doesnt bother you
@robmulla
@robmulla Жыл бұрын
Thanks. I don’t have this dataset public but I do have another video on exploratory data analysis where I go over a similar dataset which I make public. Check that one out. I think day count is just a increasing number since the day the channel started.
@1_lloyd_146
@1_lloyd_146 Жыл бұрын
@@robmulla Tysm! That’s super helpful
@giraffa-analytics
@giraffa-analytics Күн бұрын
Linear regression is a bad choice for this kind of data. This is a time series problem. cumulative sums introduce autocorrelation between datapoints, which violates the assumption of iid residuals of linear regression. Code ok, reasoning not.
@hasijasanskar
@hasijasanskar 2 жыл бұрын
October -> September :)
@viewsfromthechris7810
@viewsfromthechris7810 Жыл бұрын
Looks like you got way more than the prediction lol!
@robmulla
@robmulla Жыл бұрын
Yep :D
@gustavomaia2252
@gustavomaia2252 9 ай бұрын
Now you have learned that the skicit learn developers know how to do a linear regression 😊
@bhargavapothakamuri4218
@bhargavapothakamuri4218 4 ай бұрын
I am getting value error when I run on my 2D CSV, with 2 columns “date” and “value”, during model.fit(x,y)
@shivayshakti6575
@shivayshakti6575 Жыл бұрын
👍
@robmulla
@robmulla Жыл бұрын
🙌
@jensenholm2361
@jensenholm2361 7 ай бұрын
Wow that’s the most linear dataset I’ve ever seen
@robmulla
@robmulla 7 ай бұрын
Not any more :D
@Belawithnoalcohol
@Belawithnoalcohol 8 ай бұрын
This is October, so how is it so far?
@SayoojGarrix
@SayoojGarrix 6 ай бұрын
83k. So regression miserably failed 😂
@akankshashrivastava100
@akankshashrivastava100 9 ай бұрын
Do you teach the same?
@user-kp9si1km6g
@user-kp9si1km6g Жыл бұрын
How to write gta 6 on python, just import gta6 lib
@robmulla
@robmulla Жыл бұрын
Pretty much. Import and add 1.
@lukas8385
@lukas8385 Жыл бұрын
How to linear regression: step 1 import linear regression -.-
@robmulla
@robmulla Жыл бұрын
Yep! You’ve got the hang of it!
@gokayfem
@gokayfem Жыл бұрын
did you get 100k views?
@robmulla
@robmulla Жыл бұрын
Yes I did! As of today (Oct 20) I'm at 387k views. Thanks for watching.
@primary4075
@primary4075 7 ай бұрын
Nah.... You forgot normality test
@bharathraj221
@bharathraj221 5 ай бұрын
Filenotfounderror😢
Linear regression using R programming
20:01
R Programming 101
Рет қаралды 95 М.
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 14 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 37 МЛН
Can teeth really be exchanged for gifts#joker #shorts
00:45
Untitled Joker
Рет қаралды 14 МЛН
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
Rob Mulla
Рет қаралды 260 М.
Modern Python logging
21:32
mCoding
Рет қаралды 154 М.
Linear Regression, Clearly Explained!!!
27:27
StatQuest with Josh Starmer
Рет қаралды 216 М.
Linear Regression From Scratch in Python (Mathematical)
24:38
NeuralNine
Рет қаралды 155 М.
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 14 МЛН