Account
Computer Science & Technology

Data Science from Scratch

First Principles with Python

Data Science from Scratch builds each core algorithm in plain Python, so you understand probability, regression, and neural networks instead of importing them.

  • 398pages
  • 26chapters
  • Secondedition

This book is for you if you are

  • a Python programmer who wants the mathematics behind the libraries
  • a self-taught analyst moving from spreadsheets into real modeling
  • a student who learns best by writing code rather than reading proofs

Why this book

Data Science from Scratch by Joel Grus teaches the core tools and algorithms of data science by having you build them yourself in Python, one library at a time. Rather than calling a black-box function, you write the code behind it. That is why this book matters: the mechanics stick when you have implemented them once.

Most pages selling this title show you a cover image and a snippet. Here is what the inside actually contains. The book opens with a crash course in Python, then walks through visualizing data, linear algebra, statistics, probability, hypothesis and inference, and gradient descent before any model appears. Only then does it move into machine learning, k-nearest neighbors, naive Bayes, and regression.

  • Builds each algorithm from primitive Python rather than importing a framework
  • Works through linear algebra, statistics, and probability before modeling
  • Covers decision trees, neural networks, and deep learning as working code
  • Extends past models into clustering, natural language processing, and network analysis
  • Includes data collection, databases and SQL, MapReduce, and a chapter on data ethics

The later chapters are where the breadth shows: recommender systems, network analysis, working with data, and a closing call to go forth and do data science. Readers who want intuition they can defend in an interview or a code review gain the most. Get your copy today.

What you'll learn

  • Implement linear algebra, statistics, and probability in plain Python
  • Apply gradient descent to fit models from first principles
  • Build k-nearest neighbors, naive Bayes, and linear regression yourself
  • Construct decision trees, neural networks, and deep learning layers
  • Cluster data and analyze networks without relying on frameworks
  • Write recommender systems and natural language processing pipelines
  • Work with data through SQL, MapReduce, and ethical data practice

Not the right book for: readers who want a no-code tour of pandas and scikit-learn

Questions about this book

Does Data Science from Scratch use Python libraries or write algorithms from scratch?

It writes the algorithms from scratch in plain Python, then shows which library does the same job. The point is that you understand the mechanics before you delegate them.

What math background do I need before starting this book?

Enough comfort with algebra to follow matrix operations, and a willingness to work through statistics and probability as the book introduces them. Grus builds each topic up rather than assuming prior coursework.

How does this edition handle machine learning and deep learning?

Machine learning gets its own chapter, followed by dedicated chapters on k-nearest neighbors, naive Bayes, regression, decision trees, neural networks, and deep learning. Each arrives as code you run, not as a diagram to memorize.

Does the book cover natural language processing and recommender systems?

Yes. Natural language processing, network analysis, and recommender systems each get a dedicated chapter near the end, after the modeling foundations are in place.

Is data ethics part of the curriculum?

It is. A chapter on data ethics sits near the close, followed by a short call to go forth and do data science.

Can I get it in another format?

Yes. You get the PDF right away. Need EPUB, Kindle, Word or any other format? Email support@ebooksonline.si with your order number and we send it.

Does it work on Kindle?

Yes. Email support@ebooksonline.si with your order number and we send you a Kindle-ready file.

How many times can I download it?

As many times as you like. Sign in to your account and download it again at any time.

What if the file does not work?

Contact us with your order number and we will fix it or refund you.

Contents

  1. 1Introductionp. 1
  2. 2A Crash Course in Pythonp. 13
  3. 3Visualizing Datap. 41
  4. 4Linear Algebrap. 51
  5. 5Statisticsp. 59
  6. 6Probabilityp. 71
  7. 7Hypothesis and Inferencep. 83
  8. 8Gradient Descentp. 95
  9. 9Getting Datap. 105
  10. 10Working with Datap. 123
  11. 11Machine Learningp. 147
  12. 12k-Nearest Neighborsp. 159
  13. 13Naive Bayesp. 169
  14. 14Simple Linear Regressionp. 179
  15. 15Multiple Regressionp. 185
  16. 16Logistic Regressionp. 197
  17. 17Decision Treesp. 209
  18. 18Neural Networksp. 221
  19. 19Deep Learningp. 233
  20. 20Clusteringp. 257
  21. 21Natural Language Processingp. 273
  22. 22Network Analysisp. 303
  23. 23Recommender Systemsp. 315
  24. 24Databases and SQLp. 329
  25. 25MapReducep. 345
  26. 26Data Ethicsp. 355
  27. 27Go Forth and Do Data Sciencep. 363

Details

Author
Joel Grus
Publisher
O'Reilly Media, Inc.
Edition
Second edition, 2019
ISBN
9781492041139
Pages
398
Language
English
Formats
PDF (EPUB, Kindle or any other format on request)
File size
10.5 MB
Licence
Personal use, keep forever

Joel Grus

Buy with confidence

If your file does not open or download, we fix it or refund you. Read the refund policy.

More in Computer Science & Technology

See all

AI 2041

Kai-Fu Lee and Chen Qiufan

PDF · 476 pages

$9.99 Regular price $31.99 −69%

You save $22.00

Add to cart
Cover of 10-Minute Focus by Daniel Walter

Get a free ebook

Join the list and get 10-Minute Focus free, plus a short note when new books arrive.

Your cart

No products in the cart.

Subjects

More

Look inside

Sample