Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Data Processing with Optimus

You're reading from  Data Processing with Optimus

Product type Book
Published in Sep 2021
Publisher Packt
ISBN-13 9781801079563
Pages 300 pages
Edition 1st Edition
Languages
Authors (2):
Dr. Argenis Leon Dr. Argenis Leon
Profile icon Dr. Argenis Leon
Luis Aguirre Luis Aguirre
Profile icon Luis Aguirre
View More author details
Toc

Table of Contents (16) Chapters close

Preface 1. Section 1: Getting Started with Optimus
2. Chapter 1: Hi Optimus! 3. Chapter 2: Data Loading, Saving, and File Formats 4. Section 2: Optimus – Transform and Rollout
5. Chapter 3: Data Wrangling 6. Chapter 4: Combining, Reshaping, and Aggregating Data 7. Chapter 5: Data Visualization and Profiling 8. Chapter 6: String Clustering 9. Chapter 7: Feature Engineering 10. Section 3: Advanced Features of Optimus
11. Chapter 8: Machine Learning 12. Chapter 9: Natural Language Processing 13. Chapter 10: Hacking Optimus 14. Chapter 11: Optimus as a Web Service 15. Other Books You May Enjoy

Variable transformation

Some machine learning models, such as linear and logistic regression, assume that the variables follow a normal distribution. More likely, variables in real datasets will follow a more skewed distribution.

By applying several transformations to these variables, and mapping their skewed distribution to a normal distribution, we can increase the performance of our models.

Plotting a histogram or using Q-Q plots could give you an idea of whether the data has a normal distribution or is skewed.

Next, we will look at four methods you can use to adjust your data distribution.

Logarithmic transformation

This is the simplest and most popular among the different types of transformations and involves a substantial transformation that significantly affects the distribution shape.

We can use it (natural logarithmic ln or log base 10) to make extremely skewed distributions less skewed, especially for right-skewed (or positively skewed) distributions.

...
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