Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Statistics for Data Science

You're reading from   Statistics for Data Science Leverage the power of statistics for Data Analysis, Classification, Regression, Machine Learning, and Neural Networks

Arrow left icon
Product type Paperback
Published in Nov 2017
Publisher Packt
ISBN-13 9781788290678
Length 286 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
James D. Miller James D. Miller
Author Profile Icon James D. Miller
James D. Miller
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Transitioning from Data Developer to Data Scientist 2. Declaring the Objectives FREE CHAPTER 3. A Developer's Approach to Data Cleaning 4. Data Mining and the Database Developer 5. Statistical Analysis for the Database Developer 6. Database Progression to Database Regression 7. Regularization for Database Improvement 8. Database Development and Assessment 9. Databases and Neural Networks 10. Boosting your Database 11. Database Classification using Support Vector Machines 12. Database Structures and Machine Learning

R and statistical assessment


So, let's get started with some statistical assessment work!

As we discussed in the previous section, instead of using all the data (the entire population of observations) to train a statistical model (and then test using some of that data), cross-validation divides the data into training and testing datasets.

The first step that a data scientist needs to take when he or she is interested in using cross-validation to assess the performance of a statistical model is to organize (or split) the data into two separate subsets.

There are actually several approaches of cross-validation:

  • Leave-one-out cross-validation (LOOCV)
  • Holdout
  • k-fold and repeated k-fold
  • Re-substitution (most agree that this method is the simplest method)

This cross-validation approaches all focus on how to split the data for the training, testing, and validation. Each has its own merit (pros and cons).

There are (as always) many approaches to programming a problem. The following is one such simple method...

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 $19.99/month. Cancel anytime
Banner background image