Buy new:
-27% $36.41$36.41
FREE delivery Tuesday, December 16
Ships from: Amazon Sold by: Feyiz
Save with Used - Very Good
$8.53$8.53
FREE delivery December 18 - 24
Ships from: Bay State Book Company Sold by: Bay State Book Company
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Data Science from Scratch: First Principles with Python 1st Edition
Purchase options and add-ons
Data science libraries, frameworks, modules, and toolkits are great for doing data science, but they’re also a good way to dive into the discipline without actually understanding data science. In this book, you’ll learn how many of the most fundamental data science tools and algorithms work by implementing them from scratch.
If you have an aptitude for mathematics and some programming skills, author Joel Grus will help you get comfortable with the math and statistics at the core of data science, and with hacking skills you need to get started as a data scientist. Today’s messy glut of data holds answers to questions no one’s even thought to ask. This book provides you with the know-how to dig those answers out.
- Get a crash course in Python
- Learn the basics of linear algebra, statistics, and probability―and understand how and when they're used in data science
- Collect, explore, clean, munge, and manipulate data
- Dive into the fundamentals of machine learning
- Implement models such as k-nearest Neighbors, Naive Bayes, linear and logistic regression, decision trees, neural networks, and clustering
- Explore recommender systems, natural language processing, network analysis, MapReduce, and databases
- ISBN-10149190142X
- ISBN-13978-1491901427
- Edition1st
- PublisherO'Reilly Media
- Publication dateMay 26, 2015
- LanguageEnglish
- Dimensions7 x 0.75 x 9.25 inches
- Print length330 pages
There is a newer edition of this item:
Frequently bought together

What do customers buy after viewing this item?
Lowest Price
in this set of products
Storytelling with Data: A Data Visualization Guide for Business ProfessionalsPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Dec 15Most purchased | Highest rated
in this set of products
Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to ProgrammingPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Dec 15
Data Science from Scratch: First Principles with PythonPaperbackFREE Shipping by AmazonGet it as soon as Monday, Dec 15
Python for Data Analysis: Data Wrangling with pandas, NumPy, and JupyterPaperbackFREE Shipping by AmazonGet it as soon as Monday, Dec 15
Fluent Python: Clear, Concise, and Effective ProgrammingPaperbackFREE Shipping by AmazonGet it as soon as Monday, Dec 15
No bullshit guide to math and physicsPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Dec 15
Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent SystemsPaperbackFREE Shipping by AmazonGet it as soon as Monday, Dec 15
The Hundred-Page Machine Learning Book (The Hundred-Page Books)PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Monday, Dec 15
Practical Statistics for Data Scientists: 50+ Essential Concepts Using R and PythonPaperbackGet it as soon as Wednesday, Dec 17
Customers also bought or read
- Python for Data Analysis: Data Wrangling with pandas, NumPy, and Jupyter
Paperback$43.99$43.99FREE delivery Monday - Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems
Paperback$49.50$49.50FREE delivery Monday - Python Data Science Handbook: Essential Tools for Working with Data
Paperback$53.66$53.66FREE delivery Tuesday - Practical Statistics for Data Scientists: 50+ Essential Concepts Using R and Python
Paperback$45.25$45.25FREE delivery Tue, Dec 23 - Ace the Data Science Interview: 201 Real Interview Questions Asked By FAANG, Tech Startups, & Wall Street
Paperback$45.00$45.00FREE delivery Monday - Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython
Paperback$53.13$53.13FREE delivery Fri, Dec 19 - Data Science for Business: What You Need to Know about Data Mining and Data-Analytic Thinking
Paperback$33.24$33.24Delivery Sun, Dec 28 - Storytelling with Data: A Data Visualization Guide for Business Professionals#1 Best SellerInformation Management
Paperback$24.08$24.08Delivery Monday - Practical SQL, 2nd Edition: A Beginner's Guide to Storytelling with Data
Paperback$22.49$22.49Delivery Tuesday - Python Data Science Handbook: Essential Tools for Working with Data
Paperback$44.18$44.18FREE delivery Tuesday - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerSoftware Development
Paperback$27.53$27.53Delivery Monday - R for Data Science: Import, Tidy, Transform, Visualize, and Model Data
Paperback$48.99$48.99FREE delivery Monday - Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems#1 Best SellerData Modeling & Design
Paperback$37.00$37.00FREE delivery Monday - Essential Math for Data Science: Take Control of Your Data with Fundamental Linear Algebra, Probability, and Statistics
Paperback$36.62$36.62FREE delivery Wed, Jan 7 - Why Machines Learn: The Elegant Math Behind Modern AI#1 Best SellerDiscrete Mathematics
Hardcover$20.12$20.12Delivery Monday - An Introduction to Statistical Learning: with Applications in Python (Springer Texts in Statistics)#1 Best SellerMathematical & Statistical Software
Hardcover$63.56$63.56FREE delivery Monday - Deep Learning for Coders with Fastai and PyTorch: AI Applications Without a PhD
Paperback$41.57$41.57FREE delivery Monday - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Monday - Introduction to Algorithms, fourth edition#1 Best SellerComputer Algorithms
Hardcover$85.99$85.99FREE delivery Tue, Dec 23 - Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython
Paperback$43.74$43.74FREE delivery Monday
From the brand
-
Explore more Data Science
-
Start learning with O'Reilly
-
More From O'Reilly
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
Editorial Reviews
About the Author
Product details
- Publisher : O'Reilly Media
- Publication date : May 26, 2015
- Edition : 1st
- Language : English
- Print length : 330 pages
- ISBN-10 : 149190142X
- ISBN-13 : 978-1491901427
- Item Weight : 1.18 pounds
- Dimensions : 7 x 0.75 x 9.25 inches
- Best Sellers Rank: #519,547 in Books (See Top 100 in Books)
- #106 in Data Mining (Books)
- #193 in Data Processing
- #341 in Python Programming
- Customer Reviews:
About the author

Joel Grus is Principal Engineer at Capital Group, where he leads a small team that designs and implements machine learning and data products. Before that he was a software engineer at the Allen Institute for AI and Google, and a data scientist at a variety of startups.
He's the author of the the beloved "Data Science from Scratch", the quirky "Ten Essays on Fizz Buzz", and the polarizing JupyterCon talk "I Don't Like Notebooks".
He lives in Seattle, where he regularly attends data science happy hours. He blogs infrequently at joelgrus.com.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers find the book good at introducing data science foundations and appreciate its intelligent, concise writing style. Moreover, the book is easy to read and follow, with code examples that can be executed along with the text. They value the data analysis content, with one customer highlighting its coverage of data modeling. Additionally, customers enjoy the book's humor. However, the concept development receives mixed feedback, with several customers noting that basic ideas are not presented well.
AI Generated from the text of customer reviews
Customers find the book provides a good introduction to data science concepts, with one customer noting it serves as a great reference for applying Python programming to database exploration.
"Good introduction to "what's out there" in data science and machine learning...." Read more
"Good introduction to data analysis. The clear syntax grammar of Python helps a lot to clarify the meaning of author." Read more
"This book is very practical and helpful...." Read more
"concise and good coverage, good data science introduction and reference book" Read more
Customers appreciate the writing style of the book, finding it intelligently and concisely written, with one customer noting the author's ability to write elegant Python code.
"Really enjoyed this book, so many examples, well written, I'm buying a paper copy for the library. Well worth the purchase" Read more
"+1 for concise and to the point. +1 for relevant topics. -1 for lack of real life library usage. -1 for lack of real world data...." Read more
"...Other than these minor thoughts, I think this is an excellently written book and I highly recommend for anyone interested in data science, data..." Read more
"Pretty good intro to the topic, and covers a decent bit. Cleanly written, but a bit abbreviated in some parts...." Read more
Customers find the book easy to read and follow, with one customer noting that each chapter can be read independently.
"Easy to follow, gives the reader a good intuition for what the algorithms are all about." Read more
"...+ well written I found the author funny, clear, and thorough - wish it dove deeper into libraries -..." Read more
"...basic concepts, math, and algorithms in data science with easy explanation...." Read more
"Easy to read and follow Well written, and explained !" Read more
Customers appreciate the code examples in the book, with several mentioning the ability to code along with the examples. One customer notes that the code is surprisingly concise, while another points out the inclusion of Python pseudo code.
"Lots of coding examples for basic simple foundations to jump start your own projects." Read more
"This book is very practical and helpful. It contains the python pseudo code for many basic data science modeling methods, which was exactly what I..." Read more
"...the basic ideas were not presented so well which makes it hard to follow the code which write in great details...." Read more
"...It has a heavy focused on application with a lot of code examples, but sometimes I was missing the theory behind the example...." Read more
Customers appreciate the book's approach to data analysis, with one customer highlighting its coverage of data modeling and another noting its focus on algorithms in data science.
"...book and I highly recommend for anyone interested in data science, data analysis, or just wanting the skills to visualize clean and meaningful data...." Read more
"...a good job introducing you to the foundations of data science: data modeling, regression, classifying, clustering, NLP, Map Reduce, etc...." Read more
"...14 and 15 treat linear regression and multiple regression, fitting a model to data, and regularization to limit the tendency to overfit...." Read more
"...-1 for lack of real life library usage. -1 for lack of real world data. -1 NaN ^ 2/5 stars. I don't normally leave reviews...." Read more
Customers enjoy the book's humor.
"The book is hilarious and engaging...." Read more
"...the right size and correct coverage for the content and the author's sense of humor (indeed, that of a data scientist) resonates with the..." Read more
"Fun to read, and a great intro to the subject!" Read more
"...+ well written I found the author funny, clear, and thorough - wish it dove deeper into libraries -..." Read more
Customers have mixed opinions about the examples in the book, with some appreciating them while others find them lacking.
"...It is filled with techniques, examples and illustrations of how to do practical procedures using python...." Read more
"...For being about "data" they all have pretty useless and unrealistic examples. This book is no exception...." Read more
"Really enjoyed this book, so many examples, well written, I'm buying a paper copy for the library. Well worth the purchase" Read more
"...No end to end example and instructions to do hands on. Did not keep up with title which says "from scratch" . Very disappointed." Read more
Customers have mixed opinions about the book's concept development, with several noting that the basic ideas were not presented well.
"Very good book. The examples are diverse and well thought out...." Read more
"...In this book, the basic ideas were not presented so well which makes it hard to follow the code which write in great details...." Read more
"...about this book is the very clever/clean (and challenging) way of constructing code and solving problems. Things can get very ....nested...." Read more
"...Having said that, the ideas are presented in a somewhat unstructured way...." Read more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on February 5, 2016Format: PaperbackVerified PurchaseThe book begins with the basics of the Python language in a chapter entitled "A Crash Course in Python." Grus recommends the Anaconda distribution of Python 2.7, as do I. It is free, includes Python, NumPy, SciPy, matplotlib, and IPython that are used in the book, and includes pandas which we will use to handle financial data. This is not the book I would recommend for a person new to Python to learn the language, but it establishes the style and notation used for the remainder of the book.
Chapters 4, 5, 6 are quick reviews of linear algebra and the Python data structures used, frequentist statistics, and probability, respectively. Chapter 7 discusses hypothesis and inference, and has a nice discussion of the beta distribution and its use in describing the "prior" distribution for Bayesian analysis.
Chapter 8 begins to get into the data science with a description of the gradient descent method of finding the set of parameter values that maximize (or minimize) the objective function. The "from scratch" approach shows all the details.
Chapter 10, Working with Data, begins with methods for exploring the data. Examining the distribution, plotting single dimensional data, comparing multiple data series, normalizing, rescaling, and dimensionality reduction.
Chapter 11 begins machine learning -- models, overfitting, underfitting, bias-variance tradeoff, and feature extraction.
Chapter 12 continues with k-nearest neighbors and the curse of dimensionality.
Chapter 13 illustrates naive Bayes to implement a spam filter.
Chapters 14 and 15 treat linear regression and multiple regression, fitting a model to data, and regularization to limit the tendency to overfit.
Chapter 16 explains the logistic function and logistic regression. Examples look at measures of goodness of fit. The concept of support vector machine is explained, although the mathematics are beyond from scratch.
Chapter 17 has a nice explanation of decision trees (the models that result from rule-based trading system development, such as AmiBroker). Entropy, as it applies to information content, is well explained and used to partition data as the rules are created. Random forests, one of the ensemble techniques for machine learning, is described in surprisingly concise code.
Neural networks are described in chapter 18, including code for a feed forward, back propagation network that identifies digits. The interpretation of the weights of each of nodes gives insight into the workings of neural networks.
The book continues on with discussions of clustering, natural language processing, network analysis, recommender system, and databases.
While this is not the best book to learn Python, machine learning, or model development, it is valuable in explaining each of these topics with fully disclosed logic and computer code.
This book gets five stars based on meeting its objectives -- to clearly illustrate some of the central concepts of data science.
- Reviewed in the United States on June 9, 2016Format: PaperbackVerified PurchaseI thoroughly enjoyed this book, one of my favorite books ever on programming. It does three things superbly: covers the basic low level tools of a data scientist (the "from scratch" part), gives a great overview of useful Python programming examples for those new to Python, and gives an amazingly succinct yet high level overview of the mathematics and statistics required for data science.
At first I was very worried about this book based on the first few chapters for the one reason that the author was cracking jokes throughout the text and I thought if it kept up for the rest of the book I was going to be very upset. But it did not happen and it turns out to have been a very reasonable way to ease into this complicated subject.
The author steps through the toolbox of the data scientist, chapter by chapter, giving useful, insightful, clear pieces of code and textual explanations of each topic. So, for those new to data science it gives just enough to get the basic idea of a concept in terms of code and mathematical explanation, and then moves on to the next topic.
It is often said that in writing, less is better and this book gets things down to their essence. That is one of the great things about the book - that the length of each chapter is about 20 pages (over 25 chapters). So each chapter can be read and the code even exercised in about an hour. Further, the references at the end of each chapter invite the reader to expanded information at the level of one or more entire textbooks or references. Thus the book can be seen as kind of boiling down a 25-volume set of highly technical subject matter into roughly 300 pages.
The topics that were explored the best seem to be the ones on probability, working with data, regression, clustering, and databases (SQL). Some of the small but dense code samples were tough to follow but that is based on their algorithmic complexity - such as that for logistical regression and MapReduce. Occasionally the author uses a term that is not defined or in the index (such as data munging - which I still haven't looked up to see what it means). There are only a small number of typos which indicates good editing. While the Python crash course was pretty good, Python is a vast language and there could have been more to that section.
I read this book from cover to cover and stepped through logically all the code (but did not actually run any of it) and I would wholeheartedly recommend this book for anyone wanting to work in the area of data science or its related fields, such as big data engineering or data analysis.
- Reviewed in the United States on December 22, 2016Format: PaperbackVerified PurchaseMinus one star for using outdated Python 2.7. Essentially ALL data science tools you are likely to run across have been updated to Python 3.4+. I would have knocked off two stars but this book is actually quite good and delivers on its title.
This is a very basic book on Data Science but it gives a broad overview which helps you get a perspective on the tools that are available. This book teaches methods by developing actual code for these methods. You will find in work situations that you will use library functions instead of "rolling your own" but this book helps bring the details together by having you actually code these techniques. I support this approach 100% Once you have this overview, you can drill down into specifics with other materials like textbooks or cookbooks.
I'd did flinch at some of the explanations in this book but it really is a "from Scratch" approach and some things are simplified to avoid distractions.
This book also teaches basic Python 2.7 with a quick start chapter, so it is self contained for any scientist or engineer that wants to get started adding Data Science techniques to their repertoire.
- Reviewed in the United States on February 26, 2025Format: PaperbackVerified PurchaseGood price, and quick delivery. Product as advertised.
Top reviews from other countries
ahrarReviewed in India on September 19, 20205.0 out of 5 stars Data Science from Scratch
Format: PaperbackVerified PurchaseData Science from scratch is must for the beginners who want an overview and theoretical concepts on python, data visualization, data science , ML ,neural networks and so on.
It also has a crash course on Python
Combining this with Hands on Machine Learning and Tensorflow it is a combination worth spending.
-
Cliente AmazonReviewed in Brazil on March 10, 20183.0 out of 5 stars Interesting, but shallow
Format: PaperbackVerified PurchaseThis book is nice to improve the understanding of some details underlying the data science algorithms, but it falls short in the deepness of the content. Some concepts feels rushed and incomplete; the explanation sometimes isn't clear.
Even though the book is shallow, I would recommend it; here and there you can get a valuable piece of information from it.
-
CDevReviewed in Mexico on April 25, 20165.0 out of 5 stars Un libro que merece la pena para todas las personas que quieran adentrarse al mundo de data science.
Format: PaperbackVerified PurchaseUn libro que merece la pena para todas las personas que quieran adentrarse al mundo de data science, y no tengan un punto de partida, este libro nos ayuda a identificar casos sencillos hasta casos complejos con una ayuda visual del problema.
-
JubiReviewed in France on July 21, 20155.0 out of 5 stars Parfait pour débuter en Data Science
Format: PaperbackVerified PurchaseJ'ai choisi ce livre car bien que ma formation universitaire ait contenu 30% de maths, je n'ai pas eu l'occasion de pratiquer beaucoup depuis. Le livre ne nécessite aucun pré-requis en maths à part les opérations basiques, et explique tous les concepts (statistiques, probabilités, algèbre linéaire, etc...) de manière très didactique.
Je développe déjà en Python, donc la partie "crash course" m'a surtout servi à comprendre quelle partie de Python est utilisée pour la data science. Je pense que le livre peut etre difficile à appréhender si on n'a pas déjà des bases en programmation.
Je recommande ce livre car il explique bien les bases, est plutôt drôle à lire, et contient des pointeurs vers d'autres ressources pour approfondir les sujets.
-
MARTAReviewed in Spain on December 15, 20175.0 out of 5 stars Muy buen libro de básicos del mundo DS para también iniciarse a Python
Format: PaperbackVerified PurchaseUn libro muy útil para iniciarse al mundo DS con Python, aunque creo que es recomendable tener un mínimo de conocimientos previos (ya sea en R o haber hecho algún curso online), si no puede ser que no sea tan básico.
















