Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Principles of Data Science
Principles of Data Science

Principles of Data Science: A beginner's guide to essential math and coding skills for data fluency and machine learning , Third Edition

Arrow left icon
Profile Icon Sinan Ozdemir
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8 (4 Ratings)
Paperback Jan 2024 326 pages 3rd Edition
eBook
NZ$46.99
Paperback
NZ$58.99
Subscription
Free Trial
Arrow left icon
Profile Icon Sinan Ozdemir
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8 (4 Ratings)
Paperback Jan 2024 326 pages 3rd Edition
eBook
NZ$46.99
Paperback
NZ$58.99
Subscription
Free Trial
eBook
NZ$46.99
Paperback
NZ$58.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Principles of Data Science

Types of Data

For our first step into the world of data science, let’s take a look at the various ways in which data can be formed. In this chapter, we will explore three critical categorizations of data:

  • Structured versus unstructured data
  • Quantitative versus qualitative data
  • The four levels of data

We will dive further into each of these topics by showing examples of how data scientists look at and work with data. This chapter aims to familiarize us with the fundamental types of data so that when we eventually see our first dataset, we will know exactly how to dissect, diagnose, and analyze the contents to maximize our insight value and machine learning performance.

The first thing to note is my use of the word data. In the previous chapter, I defined data as merely a collection of information. This vague definition exists because we may separate data into different categories and need our definition to be loose.

The next thing to remember while...

Structured versus unstructured data

The first question we want to ask ourselves about an entire dataset is whether we are working with structured or unstructured data. The answer to this question can mean the difference between needing three days or three weeks to perform a proper analysis.

The basic breakdown is as follows (this is a rehashed definition of organized and unorganized data from Chapter 1):

  • Structured (that is, organized) data: This is data that can be thought of as observations and characteristics. It is usually organized using a table method (rows and columns) that can be organized in a spreadsheet format or a relational database.
  • Unstructured (that is, unorganized) data: This data exists as a free entity and does not follow any standard organization hierarchy such as images, text, or videos.

Here are a few examples that could help you differentiate between the two:

  • Most data that exists in text form, including server logs and Facebook...

The four levels of data

It is generally understood that a specific characteristic (feature/column) of structured data can be broken down into one of four levels of data. These levels are as follows:

  • The nominal level
  • The ordinal level
  • The interval level
  • The ratio level

As we move down the list, we gain more structure and, therefore, more returns from our analysis. Each level comes with its own accepted practice in measuring the center of the data. We usually think of the mean/average as being an acceptable form of center.

However, this is only true for a specific type of data.

The nominal level

The first level of data, the nominal level, consists of data that is described purely by name or category. Basic examples include gender, nationality, species, or yeast strain in a beer. They are not described by numbers and are therefore qualitative. The following are some examples:

  • A type of animal is on the nominal level of data. We may also say...

Summary

This chapter has provided an overview of the crucial role data types play in data science, emphasizing the importance of understanding the nature of the data before commencing any analysis. We discussed the significance of asking three key questions when encountering a new dataset: whether the data is structured or unstructured, whether each column is quantitative or qualitative, and the level of data within each column (nominal, ordinal, interval, or ratio).

By completing this chapter, you should be able to identify the types of data they are working with and understand the implications of those data types on their analysis. This knowledge will help you select appropriate graphs, interpret results, and determine the next steps in the analytical process. You should also be familiar with the concept of converting data from one level to another to gain more insights.

With this knowledge, and with the ability to classify data as nominal or ordinal through various examples...

Questions and answers

For the following statements, classify them as ordinal or nominal:

  • The origin of the beans in your cup of coffee: Nominal
  • The place someone receives after completing a foot race: Ordinal
  • The metal used to make the medal that they receive after placing in the race: Nominal
  • The telephone number of a client: Nominal
  • How many cups of coffee you drink in a day: Ordinal
Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn practical data science combined with data theory to gain maximum insights from data
  • Discover methods for deploying actionable machine learning pipelines while mitigating biases in data and models
  • Explore actionable case studies to put your new skills to use immediately
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Principles of Data Science bridges mathematics, programming, and business analysis, empowering you to confidently pose and address complex data questions and construct effective machine learning pipelines. This book will equip you with the tools to transform abstract concepts and raw statistics into actionable insights. Starting with cleaning and preparation, you’ll explore effective data mining strategies and techniques before moving on to building a holistic picture of how every piece of the data science puzzle fits together. Throughout the book, you’ll discover statistical models with which you can control and navigate even the densest or the sparsest of datasets and learn how to create powerful visualizations that communicate the stories hidden in your data. With a focus on application, this edition covers advanced transfer learning and pre-trained models for NLP and vision tasks. You’ll get to grips with advanced techniques for mitigating algorithmic bias in data as well as models and addressing model and data drift. Finally, you’ll explore medium-level data governance, including data provenance, privacy, and deletion request handling. By the end of this data science book, you'll have learned the fundamentals of computational mathematics and statistics, all while navigating the intricacies of modern ML and large pre-trained models like GPT and BERT.

Who is this book for?

If you are an aspiring novice data scientist eager to expand your knowledge, this book is for you. Whether you have basic math skills and want to apply them in the field of data science, or you excel in programming but lack the necessary mathematical foundations, you’ll find this book useful. Familiarity with Python programming will further enhance your learning experience.

What you will learn

  • Master the fundamentals steps of data science through practical examples
  • Bridge the gap between math and programming using advanced statistics and ML
  • Harness probability, calculus, and models for effective data control
  • Explore transformative modern ML with large language models
  • Evaluate ML success with impactful metrics and MLOps
  • Create compelling visuals that convey actionable insights
  • Quantify and mitigate biases in data and ML models

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 31, 2024
Length: 326 pages
Edition : 3rd
Language : English
ISBN-13 : 9781837636303
Category :
Languages :
Concepts :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Jan 31, 2024
Length: 326 pages
Edition : 3rd
Language : English
ISBN-13 : 9781837636303
Category :
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just NZ$7 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just NZ$7 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total NZ$ 210.97
Mastering NLP from Foundations to LLMs
NZ$77.99
Exploratory Data Analysis with Python Cookbook
NZ$73.99
Principles of Data Science
NZ$58.99
Total NZ$ 210.97 Stars icon

Table of Contents

17 Chapters
Chapter 1: Data Science Terminology Chevron down icon Chevron up icon
Chapter 2: Types of Data Chevron down icon Chevron up icon
Chapter 3: The Five Steps of Data Science Chevron down icon Chevron up icon
Chapter 4: Basic Mathematics Chevron down icon Chevron up icon
Chapter 5: Impossible or Improbable – A Gentle Introduction to Probability Chevron down icon Chevron up icon
Chapter 6: Advanced Probability Chevron down icon Chevron up icon
Chapter 7: What Are the Chances? An Introduction to Statistics Chevron down icon Chevron up icon
Chapter 8: Advanced Statistics Chevron down icon Chevron up icon
Chapter 9: Communicating Data Chevron down icon Chevron up icon
Chapter 10: How to Tell if Your Toaster is Learning – Machine Learning Essentials Chevron down icon Chevron up icon
Chapter 11: Predictions Don’t Grow on Trees, or Do They? Chevron down icon Chevron up icon
Chapter 12: Introduction to Transfer Learning and Pre-Trained Models Chevron down icon Chevron up icon
Chapter 13: Mitigating Algorithmic Bias and Tackling Model and Data Drift Chevron down icon Chevron up icon
Chapter 14: AI Governance Chevron down icon Chevron up icon
Chapter 15: Navigating Real-World Data Science Case Studies in Action Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8
(4 Ratings)
5 star 75%
4 star 25%
3 star 0%
2 star 0%
1 star 0%
O Feb 24, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Appreciate all the code examples and the up to date GitHub
Amazon Verified review Amazon
Steven Fernandes May 07, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book is a fantastic resource for anyone diving into data science. It effectively bridges the gap between theoretical math and practical programming through engaging examples and clear explanations. The sections on probability, calculus, and machine learning models are particularly enlightening. I especially appreciated the deep dive into modern machine learning techniques, including large language models, and the practical advice on using metrics and MLOps to evaluate ML projects. The guidance on creating visuals and addressing data biases is also invaluable. Highly recommend for those looking to enhance their data science skills!
Amazon Verified review Amazon
Om S May 09, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Principles of Data Science is a book that helps you understand data and use it to make decisions. It teaches you how to clean data, find important patterns, and make predictions using machine learning. The book covers basic to advanced topics, including how to handle biases and use big models like GPT and BERT. It's perfect for beginners who know some Python and want to get better at using data in real projects.
Amazon Verified review Amazon
H2N Mar 11, 2024
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This book is for new data scientists. Each chapter is well-structured, offering clear explanations and practical examples. The inclusion of Python code snippets helps the learning experience, making it easier to apply the concepts in real-world scenarios. However, the chapters on advanced statistics and probability may disappoint those expecting more depth, as they assume a level of knowledge common in the data science field. Overall, this book is a valuable resource for aspiring data scientists looking to build a solid foundation in the field.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.