Skip to Content
Practical Predictive Analytics
book

Practical Predictive Analytics

by Ralph Winters
June 2017
Beginner to intermediate
576 pages
15h 22m
English
Packt Publishing
Content preview from Practical Predictive Analytics

Introducing errors into the test data set

Since both the test and training datasets have been generated by simulated random normal distributions, the data is almost too perfect. To compensate for this, and to make the data more realistic and help you develop more simulation skills, we can introduce some random error into the test data set. For example, we might want to add up to a plus/minus 10% variation into the test data variables.

To accomplish this, we will first generate an error distribution that we can apply to the original data. For simplicity's sake, we can derive four discrete error bins, each designating a different percentage adjustment to the data. Percentage errors between -10% and +10% are reasonable limits.

We will generate ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Superstream: Analytics Engineering

Data Superstream: Analytics Engineering

Alistair Croll, Anna Filippova, Emilie Schario, Lewis Davies, Jacob Frackson, Benn Stancil, Nick Acosta, Elizabeth Caley
R: Predictive Analysis

R: Predictive Analysis

Tony Fischetti, Eric Mayor, Rui Miguel Forte
Python: Advanced Predictive Analytics

Python: Advanced Predictive Analytics

Ashish Kumar, Joseph Babcock

Publisher Resources

ISBN: 9781785886188Supplemental Content