To succeed in data science you need some math proficiency. But not just any math. This common-sense guide provides a clear, plain English survey of the math you'll need in data science, including probability, statistics, hypothesis testing, linear algebra, machine learning, and calculus.

Practical examples with Python code will help you see how the math applies to the work you'll be doing, providing a clear understanding of how concepts work under the hood while connecting them to applications like machine learning. You'll get a solid foundation in the math essential for data science, but more importantly, you'll be able to use it to:

  • Recognize the nuances and pitfalls of probability math
  • Master statistics and hypothesis testing (and avoid common pitfalls)
  • Discover practical applications of probability, statistics, calculus, and machine learning
  • Intuitively understand linear algebra as a transformation of space, not just grids of numbers being multiplied and added
  • Perform calculus derivatives and integrals completely from scratch in Python
  • Apply what you've learned to machine learning, including linear regression, logistic regression, and neural networks

Table of Contents

  1. 1. Basic Math and Calculus Review
    1. Number Theory
    2. Order of Operations
    3. Variables
    4. Functions
    5. Exponents
    6. Logarithms
    7. Euler’s Number and Natural Logarithms
    8. Use e to Predict Event Probability Over Time
    9. Natural Logarithms
    10. Limits
    11. Derivatives
    12. Integrals
    13. Conclusion
    14. Exercises
  2. 2. Probability
    1. Understanding Probability
    2. Probability versus Statistics
    3. Frequentist versus Bayesian Probability
    4. Probability Math
    5. Joint Probabilities
    6. Floating Point Underflow
    7. Union Probabilities
    8. Conditional Probability and Bayes Theorem
    9. Binomial Distribution
    10. Binomial Distribution from Scratch
    11. Beta Distribution
    12. Beta Distribution from Scratch
    13. Conclusion
    14. Exercises