What is logarithm? | Math, Statistics for data science, machine learning

  Рет қаралды 108,048

codebasics

codebasics

Күн бұрын

Пікірлер: 192
@codebasics
@codebasics 3 жыл бұрын
Adding little clarification here: in the beginning of the presentation I meant to have 1$ starting amount which becomes 5$ after one year, 25 after 2 years and 125$ after 3 years. When we use log 125 base 5, the base 5 indicates the 5x returns that you get every Year
@timeforsometruth4512
@timeforsometruth4512 3 жыл бұрын
Aaah thank you, that answers my question thanks again.
@AmiteshKeSath
@AmiteshKeSath 3 жыл бұрын
Got you Sir 👍
@kunalpandya8468
@kunalpandya8468 3 жыл бұрын
Can we use normalisation instead of logarithmic transformation?
@bunny1240
@bunny1240 3 жыл бұрын
If possible could you please share why is natural log of negative number invalid?
@mjshaheed
@mjshaheed 3 жыл бұрын
Thank you, Sir!
@niluthpalchowdhury
@niluthpalchowdhury 7 күн бұрын
If I had teacher like you in my high school I would have never got afraid of Maths
@GZAMORA27
@GZAMORA27 3 жыл бұрын
Thanks a lot! This not only provide better insights of the usage of this topics in ML but also help to see what needed to be studied to become a better data scientist
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@kyawswarthant708
@kyawswarthant708 3 жыл бұрын
short to the points and easy to understand wish I should come to this channel earlier before going heavy math courses related to machine learning
@That_Coding_Channel
@That_Coding_Channel 3 жыл бұрын
This is one of the to-the-point explanations I learnt so far. Thanks a lot!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@sarthaksanatani05
@sarthaksanatani05 3 жыл бұрын
I didnt know log concept was so easy . I thought it was fully abstract and need to accept as it is since school and college lectures. Lol
@adaariina7175
@adaariina7175 3 жыл бұрын
Wao! I understand you better then my teacher back in school. So easy to understand.
@sahilshahane1547
@sahilshahane1547 2 жыл бұрын
Thank you, now i have more clear understanding of Log in ML's prespective
@sony7781
@sony7781 3 жыл бұрын
can't wait for more videos. you make the topic so easy to understand with perfect examples. please upload longer videos covering more topics. Looking forward to learn probability and statistics from you which i find difficult with few topics.
@codebasics
@codebasics 3 жыл бұрын
Next video will premier tomorrow :)
@sarahlatifkhan8634
@sarahlatifkhan8634 3 жыл бұрын
Thank you for the best explanation of everything, I enjoyed your DSAlgo series now revising these concepts, you are so good at teaching! Prayers & Best regards!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@supersql8406
@supersql8406 3 жыл бұрын
Damn! I just subscribed to this guy like a min ago watching his Naive Bayes video and now I fully understand Logarithm!
@Lorena-qp2ou
@Lorena-qp2ou 3 жыл бұрын
this is the best youtube channel ever
@vikashdas1852
@vikashdas1852 3 жыл бұрын
Currently I'm learning ML from this channel and I had just started wondering that a resource is required for a grip on fundamentals of maths and boom....this guys again comes to rescue
@codebasics
@codebasics 3 жыл бұрын
I am happy this was helpful to you.
@ramesha8539
@ramesha8539 2 жыл бұрын
Short and crisp videos amazing superb skills 👌
@gustavojuantorena
@gustavojuantorena 3 жыл бұрын
This is an awesome approach to learn math for DS and ML, It's practical and well explained with examples in code.
@codebasics
@codebasics 3 жыл бұрын
Glad you liked it
@KumR
@KumR Жыл бұрын
Wish I had someone like you during my college days to teach logs
@arunavrath8400
@arunavrath8400 3 жыл бұрын
Superbly explained. Thanks Dhaval !
@giovanniberardi4134
@giovanniberardi4134 3 жыл бұрын
Very good. Thanks 👌
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@dibyarupnath
@dibyarupnath 3 жыл бұрын
This playlist is very very helpful. Please make more videos for this sIr. Great Work!
@saikatdutta1991
@saikatdutta1991 2 ай бұрын
I appreciate your diligence
@azrflourish9032
@azrflourish9032 3 жыл бұрын
THIS IS What I was looking for. Simple explanation!!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@sejalanand23
@sejalanand23 3 жыл бұрын
Really excited about this series
@codebasics
@codebasics 3 жыл бұрын
Keep watching
@timeforsometruth4512
@timeforsometruth4512 3 жыл бұрын
@@codebasics hi sir, just a quick question, at the start of the video it says it will take us 2 years to get 5 dollars to 125 dollars at 5x return, as it will be 25 dollars after 1 year and then 125 dollars after 2...why does the answer become 3 years when performing the log function? Wouldn't that be like starting with 1 dollar, then having 5 after year 1 at 5x return, then 25 dollars after 2 years at 5x return and then 125 dollars after 3 years? Please help me understanding where I am going wrong with my thinking. Thank you kindly for the series again.
@balajikartheek285
@balajikartheek285 3 жыл бұрын
@@timeforsometruth4512 exactly, me too having the same doubt???
@timeforsometruth4512
@timeforsometruth4512 3 жыл бұрын
@@balajikartheek285 I see that we were right Balaji. Author has clarified that he did mean to start with 1 dollar, and not 5 👍
@vivekpaliwal1876
@vivekpaliwal1876 Жыл бұрын
Best explanation...i will never forget this
@learnerlearner4090
@learnerlearner4090 3 жыл бұрын
Really good info.. I learnt the basics of logarithms and how it can be used in DS. I don't in school I even understood why it's used. Thanks so much for sharing the info.!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@gouravsapra8668
@gouravsapra8668 2 жыл бұрын
Very well explained....Thank you 👍
@ArunKumar_237
@ArunKumar_237 3 жыл бұрын
Thank you guruji 🙏. Please continue this series
@codebasics
@codebasics 3 жыл бұрын
Keep watching
@RFICick22
@RFICick22 3 жыл бұрын
Excellent, very accurate explaining about basics of log and their use in ML.
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@faith3220a
@faith3220a 3 жыл бұрын
These are awesome and very simple to understand... Thank you
@haripriyamoorthy5290
@haripriyamoorthy5290 3 жыл бұрын
Waiting 😎
@baskarangopalan9291
@baskarangopalan9291 3 жыл бұрын
Very nice helped me in machine learning terms and I can use this video for my daughter to understand log is inverse of exponents
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@satya6804
@satya6804 3 жыл бұрын
Thanks for great effort in explaining and building this series. please keep it up
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@flamboyantperson5936
@flamboyantperson5936 3 жыл бұрын
Hey Dhaval, what a great and simple explanation :)
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@ketanbutte3497
@ketanbutte3497 3 жыл бұрын
simple, easy to understand, great work
@codebasics
@codebasics 3 жыл бұрын
Glad it helped!
@adityabhadoriya3191
@adityabhadoriya3191 3 жыл бұрын
waiting for your next video
@codebasics
@codebasics 3 жыл бұрын
Keep watching
@TheMISBlog
@TheMISBlog 3 жыл бұрын
Great Video, Very useful, Thanks
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@instantlearning3003
@instantlearning3003 3 жыл бұрын
thank you so much sir for this great playlist
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@AmarKumar-rp4uw
@AmarKumar-rp4uw 3 жыл бұрын
Great sir...
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@saurabhbarasiya4721
@saurabhbarasiya4721 3 жыл бұрын
Great video sir
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@muhammadnauman1454
@muhammadnauman1454 3 жыл бұрын
Amazing! i had many charts in my reports like that are difficult to compare so after watching this i added log column and created new charts based on log column now its comparable .
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@MuhammadUmar-px6ij
@MuhammadUmar-px6ij 3 жыл бұрын
Great example
@codebasics
@codebasics 3 жыл бұрын
I am glad you liked it
@denuwanharshana4872
@denuwanharshana4872 3 жыл бұрын
Thank you Sir, this is very usefull
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@Mano64902
@Mano64902 3 жыл бұрын
Great explanation
@Hengul
@Hengul 3 жыл бұрын
That was really really awesome Sir... Got the concepts very clearly.. ❤️
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@deeptidas7246
@deeptidas7246 3 жыл бұрын
Great explanation. Thanks 😊
@dra.talwar4592
@dra.talwar4592 3 жыл бұрын
Its a good idea, clearing concept with practice on Jupyter notebook
@rabiafyz9952
@rabiafyz9952 3 жыл бұрын
Please show some projects of data science that are used in a job or in work. Thanks.
@AmiteshKeSath
@AmiteshKeSath 3 жыл бұрын
Sir you are simply awesome... Its so easy and interesting to understand the concept.. million thanks for making such videos..please please please keep doing such great work..❤️❤️🎉🙏😊🙏🙏🙏🌈🌻
@codebasics
@codebasics 3 жыл бұрын
It's my pleasure, Glad it was helpful!
@alifaisal253
@alifaisal253 3 жыл бұрын
amazingly explained
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@mohs8789
@mohs8789 3 жыл бұрын
Great ....Nicely explained 👍
@codebasics
@codebasics 3 жыл бұрын
Thank you 🙂
@MLDSInsights
@MLDSInsights 3 жыл бұрын
Awesome video sir. If possible please add little more in depth concept and calculation and try adding numerical mathematic problems as exercise.
@1234569312
@1234569312 3 жыл бұрын
Hi this is a good initiative but please also try to explain the maths behind and try to explain more....it was too short .. Keep it up!!
@vikashdas1852
@vikashdas1852 3 жыл бұрын
Saying Thank You wont be enough!!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@asimshah2889
@asimshah2889 3 жыл бұрын
great explanation sir very helpful
@codebasics
@codebasics 3 жыл бұрын
I am happy this was helpful to you.
@chatchaikomrangded960
@chatchaikomrangded960 3 жыл бұрын
Subscribed, I like the way you explain.
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@DibyenduFX
@DibyenduFX Жыл бұрын
Very helpful
@harshadasuryawanshi796
@harshadasuryawanshi796 3 жыл бұрын
I woulde suggest Normalization as another topic which is must in this series
@piyalikarmakar5979
@piyalikarmakar5979 3 жыл бұрын
Sir, it will be helpful if you kindly do a vedio on bias and variance, likelihood Estimations
@thejillykilly
@thejillykilly 3 жыл бұрын
Video on loss function please
@zergham001
@zergham001 3 жыл бұрын
Thank you ❤️
@hemanthkumar1466
@hemanthkumar1466 3 жыл бұрын
sir i would like to learn data science and i had a knowledge in python so should i learn libraries first or mathematics topics first for data science from your play list thank you.
@lol-ki5pd
@lol-ki5pd Жыл бұрын
I have a question, why did not we treat pooja value as an outlier?
@Giratina155
@Giratina155 2 жыл бұрын
Thank you!
@programmingwithjackchew903
@programmingwithjackchew903 2 жыл бұрын
what is difference between minmaxscale and log for transforming to a similar scale?
@Rumil_
@Rumil_ 3 жыл бұрын
Wow thanks so much! What is the intuition around using log base 10 on poojas number and not some other base?
@AshishPatel-kn3kc
@AshishPatel-kn3kc 3 жыл бұрын
Is there any video on R2 ?
@pankajjoshi8292
@pankajjoshi8292 3 жыл бұрын
Sir @5:45 why Log base 10 was taken why not log base 2 or base 5 or any other number? Thank u
@sunilsharanappa7721
@sunilsharanappa7721 3 жыл бұрын
The log transform is a transformation technique to replace each variable x with a log(x), or to rescale your data in a logarithmic scale. A logarithmic scale is a way of represent extremely varied values (large range of positive values). It is based on orders of magnitude, rather than a standard linear scale, so the value represented by each equidistant mark on the scale is the value at the previous mark multiplied by a constant. The constant is the base, in this context. Considering x = 100: Base 10 - the base 10 logarithm of 100 is 2, because 10^2 = 100 Base 2 - the base 2 logarithm of 100 is 6.64, because 2^6.64 ~ 100 After the log10 transform, the increase of 1 unit represents x10 in the original scale. If you use log base 2, each unit will represent x2. Humans intuitively use the decimal system to count and do math, so it is easier to understand 1 unit as "10 times" than "twice" in this context. In practical terms, if you are not considering human interpretability, the any base will work just fine for your transformation. There is a nice post from Daniel with respect to your question which is worth reading, please take a look. www.linkedin.com/pulse/which-base-should-you-apply-your-log-transform-daniel-labbe/
@shaghayeghraaaaad
@shaghayeghraaaaad 3 жыл бұрын
Thank you sooo much
@karannchew2534
@karannchew2534 3 жыл бұрын
Sir, A question re: log(income) use case at 5:35 please. While log scales down the super high income, it's also compreses other income amounts, most of them at same order of magnitude. Wouldn't that create a new problem: the log-ed incomes are now too close to each other? Wouldn't it impact the ML ability to predict results?
@codebasics
@codebasics 3 жыл бұрын
No it will not. Once model is built and when you give it an income value for a prediction, it will again take log of that input value. So overall it will work out and you won't face any problem
@karannchew2534
@karannchew2534 3 жыл бұрын
@@codebasics Thanks bro. Also THANK YOU for sharing your video and knowledge.
@muhammadsajid4344
@muhammadsajid4344 3 жыл бұрын
Good job, sir
@codebasics
@codebasics 3 жыл бұрын
Most welcome
@reserch1098
@reserch1098 3 жыл бұрын
Hi do you implement any hybrid machine learning models? collaborative filtering, rule based classification, and association rule coding....
@nitinrahuja
@nitinrahuja 3 жыл бұрын
Thanks for this amazing explanation. Can we say that using Log function, you have normalized the revenue and income in the respective examples...?
@codebasics
@codebasics 3 жыл бұрын
Yes, you can say that.
@dakshbhatnagar
@dakshbhatnagar 2 жыл бұрын
But isn't the min-max scaler given by SciKit Learn better for scaling the values where we are specifically facing an issue of 1 big number?
@Satya-chowdhury
@Satya-chowdhury 2 жыл бұрын
Very good
@rahulzinjurde2526
@rahulzinjurde2526 3 жыл бұрын
Thanks sir
@codebasics
@codebasics 3 жыл бұрын
Welcome
@nurulamin7982
@nurulamin7982 3 жыл бұрын
great job.
@codebasics
@codebasics 3 жыл бұрын
Thank you! Cheers!
@anees001
@anees001 3 жыл бұрын
Hi It's a very quick informative video with practical example. 👍 I have a question, after we convert the revenues into log values, how to represent the y axis values in a report, so that everyone can clearlyinterpret the graph. Thank you
@busrabintakalam7300
@busrabintakalam7300 3 жыл бұрын
Informative,🙂
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@Gurur_shots
@Gurur_shots Жыл бұрын
Sir how to calculate logy for salary column using python code????
@ankushtaneja8118
@ankushtaneja8118 3 жыл бұрын
amazing
@codebasics
@codebasics 3 жыл бұрын
Thanks
@boejiden7093
@boejiden7093 3 жыл бұрын
I have one question. When you applied log to the salaries of the people in excel, would it make more sense to standardize it instead? Like when is it a good idea to standardize and when is it a good idea to use log?
@codebasics
@codebasics 3 жыл бұрын
Usual guideline is that when you have an outlier and skewed data (as indicated in the loan dataset in this video) it is better to use log transform. When you have two features on a different scale (i.e. bedrooms vs square ft for property price prediction) it is better to use regular scaling techniques
@boejiden7093
@boejiden7093 3 жыл бұрын
@@codebasics So in the example, you had credit score, age and income. Should I first do log transform to the skewed and outlier data like income and then standardize the columns? So should I standardize at all for that example? Thanks!
@swarnachoppella388
@swarnachoppella388 2 жыл бұрын
Thanks a lot : )
@anandtrivedi6217
@anandtrivedi6217 Жыл бұрын
cheera from Gujarat bhaai .
@SahilAnsari-gl3xu
@SahilAnsari-gl3xu 3 жыл бұрын
Why you are using Log income instead of Normalised (0-1) income???? What is the difference in these two scaling on ML performance?
@balajikartheek285
@balajikartheek285 3 жыл бұрын
hi sir, just a quick question, at the start of the video it says it will take us 2 years to get 5 dollars to 125 dollars at 5x return, as it will be 25 dollars after 1 year and then 125 dollars after 2...why does the answer become 3 years when performing the log function? Wouldn't that be like starting with 1 dollar, then having 5 after year 1 at 5x return, then 25 dollars after 2 years at 5x return and then 125 dollars after 3 years? Please help me!!
@codebasics
@codebasics 3 жыл бұрын
Balaji thanks for pointing that out , you are right. Actually I mean to start with 1$ and then after one year it becomes 5$, 2 years 25$ and then third year it will be 125$. I will add a clarification but you are absolutely right and thanks for pointing it out
@prudhvi5211
@prudhvi5211 Жыл бұрын
see when we have a data like single digit to 3digit value then we need to compare both then log scale was best base 1 to 10, another bar will be 10 to 100 was the same distance again 100 to 1000 in y-axis
@adipurnomo5683
@adipurnomo5683 3 жыл бұрын
So many machine learning algorithms using logarithm, right? E.g decision tree, logistic regression
@learnerlearner4090
@learnerlearner4090 3 жыл бұрын
Added below code segment import numpy as np df2 = pd.read_csv("income.csv") df2['log income']=np.log(df2['income']) I'm getting different values for 'log income' column. Pls. let me know if the log function used is not correct. Thanks
@learnerlearner4090
@learnerlearner4090 3 жыл бұрын
Got it. It's log10() that gives the values same as the values shown in the video. Thanks.
@himanshusemwal1889
@himanshusemwal1889 3 жыл бұрын
Hey Sir! Plz help us on explaining the mathematics behind various gradient descent Algorithms and optimizations techniques. Probably the calculus part behind it .
@codebasics
@codebasics 3 жыл бұрын
yes i will be covering all of that in this series
@puneetaggarwal7549
@puneetaggarwal7549 3 ай бұрын
Amazing
@subhajitdas8871
@subhajitdas8871 3 жыл бұрын
Please make a complete video course of Statistics and Mathematics.. required for Data Analyst or MIS job..
@boojaado
@boojaado 3 жыл бұрын
thank you
@shamirrrr
@shamirrrr 3 жыл бұрын
I have a question here. In loan approval problem you said if we apply log then values are more comparable and our model will not be baised. Then why we use min max scaler etc. Now i am confuse in between.
@codebasics
@codebasics 3 жыл бұрын
Very good question Shamir. Log transform is used when your data is skewed and you have outliers. In my example there was one person with abnormally high income and in this case it makes sense to use log transform. When you don't have outlier situation but say one feature is in range 1 to 5 (i.e. bedrooms for property price prediction) and another feature is in a range 2000 to 10000 (i.e. sqr ft area) then in this case it makes sense to use min max scaler. Here is the good article that gives details on what I just said above: medium.com/@sjacks/feature-transformation-21282d1a3215
@shamirrrr
@shamirrrr 3 жыл бұрын
@@codebasics thank you sir, That's the great explanation. ❤️❤️❤️
@p.s_kev.in96
@p.s_kev.in96 3 жыл бұрын
I had the exact same doubt post watching the video now , but the explanation solved it 👍
@TusharSuvarna
@TusharSuvarna 3 жыл бұрын
thanks a lot!
@codebasics
@codebasics 3 жыл бұрын
Glad it was helpful!
@gokkulvd9568
@gokkulvd9568 3 жыл бұрын
Sir, your videos are great. we understand your effort but please take care of your health.
@siddharthadebvines5296
@siddharthadebvines5296 3 жыл бұрын
which one, data scientists should use ? spyder or pycharm ?
@codebasics
@codebasics 3 жыл бұрын
anything is ok. I use pycharm.
@ran23111985
@ran23111985 3 жыл бұрын
Hi sir Is this applicable even for learning data analyst skills?
@codebasics
@codebasics 3 жыл бұрын
yes
@shahpujanvinodbhai8926
@shahpujanvinodbhai8926 3 жыл бұрын
For people like me who don't know/remember more about log. Default base value of log is 10.
@muzafarhussain6878
@muzafarhussain6878 3 ай бұрын
absolutely gorgeous explanation❤. love you from pakistan
@anoor7227
@anoor7227 3 жыл бұрын
Sir yh 10 video kafi for data sci science
@mvcutube
@mvcutube 3 жыл бұрын
Thanks
@codebasics
@codebasics 3 жыл бұрын
Welcome
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Logarithms: why do they even exist?
12:47
Ciaran McEvoy
Рет қаралды 103 М.
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 363 М.
How to Learn Math for Data Science (and stay sane!)
13:37
Thu Vu
Рет қаралды 212 М.
How Math makes Machine Learning easy (and how you can learn it)
8:47
Infinite Codes
Рет қаралды 55 М.
Logarithms explained Bob Ross style
8:57
Tibees
Рет қаралды 3,6 МЛН
The KL Divergence : Data Science Basics
18:14
ritvikmath
Рет қаралды 57 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН