Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Statistics for Machine Learning

You're reading from  Statistics for Machine Learning

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781788295758
Pages 442 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Pratap Dangeti Pratap Dangeti
Profile icon Pratap Dangeti

Table of Contents (16) Chapters

Title Page
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Journey from Statistics to Machine Learning Parallelism of Statistics and Machine Learning Logistic Regression Versus Random Forest Tree-Based Machine Learning Models K-Nearest Neighbors and Naive Bayes Support Vector Machines and Neural Networks Recommendation Engines Unsupervised Learning Reinforcement Learning

Machine learning models - ridge and lasso regression


In linear regression, only the residual sum of squares (RSS) is minimized, whereas in ridge and lasso regression, a penalty is applied (also known as shrinkage penalty) on coefficient values to regularize the coefficients with the tuning parameter λ.

When λ=0, the penalty has no impact, ridge/lasso produces the same result as linear regression, whereas λ -> ∞ will bring coefficients to zero:

Before we go deeper into ridge and lasso, it is worth understanding some concepts on Lagrangian multipliers. One can show the preceding objective function in the following format, where the objective is just RSS subjected to cost constraint (s) of budget. For every value of λ, there is an s such that will provide the equivalent equations, as shown for the overall objective function with a penalty factor:

Ridge regression works well in situations where the least squares estimates have high variance. Ridge regression has computational advantages over...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}