Understanding Uncertainty · Roadmap

Roadmap for this course and Roadmap within SDS

Why are we teaching these concepts in an MSDS program?

Underlined concepts open a concept box when you hover or tap them: its definition, why you'll use it, where you'll see it, and an example.

Connections to other classes

As a data scientist, you will generally do these steps:

  1. Have a question you want to answer
  2. Gather data
  3. Put that data somewhere
  4. Make a guess about the underlying population based on your data (your sample) [estimation]
  5. Figure out how accurate you can expect your guess to be [inference]
  6. Predict things based on the more accurate estimates [predictive modeling, ML]
  7. Sometimes we will go back and check our model [inference]
  8. Present these predictions to someone who has more responsibilities than you, or shareholders, or make a decision yourself based on the predictions; or deploying the model for use by others

This process goes wrong if:

  1. You don’t have a good question or aren’t asking the right question
  2. You gather data in a biased way that doesn’t actually address your question or is skewed from the true population
  3. You store the data improperly
  4. You didn’t find a good estimate (it’s biased, it doesn’t fit the data you were given, etc)
  5. Your estimate has a lot of uncertainty (variance)
  6. Your predictive model is based on these estimates that are not accurate or certain
  7. You misrepresent the results of the model (for example, by being overconfident in your conclusions and predictions).

Real companies have lost money at every step. Successful companies do at least one of these steps really well. Data scientists who miss a few steps will make bad predictions, mislead people, lose money, and not truly learn about the world. Data scientists who can do all of the steps (or some of them really well, while understanding the others) are successful.

In UU, we are most interested in steps 4, 5, and 7. Of course, the interplay between inference and predictive modeling will relate what you are learning in ML and this class—sometimes you will do inference first and model after you have quantified your uncertainty; sometimes you will do predictive modeling first and then check how certain you are about the parameters in the model. But to be effective as a data scientist, you need to be able to do both. Predictive modeling without inference leads to overconfidence in our models [see Zillow Offers iBuying program] and not understanding the why behind the model. Inference without predictive modeling feels less satisfying because you may understand something about the world better (or understand that you don’t understand), but you haven’t done anything with that information. There are data scientists that do entirely one side. Our goal is to get you to do, or at least appreciate, both.

Inference requires a deep understanding of probability and statistics. There is no way around that. Predictive modeling requires a deep understanding of machine learning algorithms (and therefore, more indirectly, probability and statistics).

Roadmap for this course

How are all of the concepts in UU connected? The course has two main halves. The first half is building up your statistical toolkit. These ideas build on each other and relate, and they will keep coming back over and over. The early statistical ideas we will start with are important for both frequentist and Bayesian approaches (for example, everyone agrees on Bayes’ rule), but we will quickly dive into frequentist ideas for non-parametric inference and parametric inference. This includes sampling distributions and resampling our data (bootstrapping) to calculate how uncertain our estimates are. Then we'll move to Fisherian inference, a subset of frequentism. This includes hypothesis testing and confidence intervals. We'll detour into Markov chains to understand how conditional probabilities work in practice and can model temporal data. Then, we'll focus on several implementations of another Fisherian approach that needs conditional probabilities: maximum likelihood estimation, which is a key method for fitting statistical models. When you fit a statistical model with Python, many standard packages will solve an MLE problem under the hood (including statsmodels, scipy, and scikit-learn). Finally, we'll end the course with a survey of Bayesian inference methods, and use PyMC (a package relying on Markov Chain Monte Carlo) to implement Bayesian inference.

Click a box to jump to that section.

Probability key concepts

Linear algebra key concepts

Data wrangling

Representing distributions and densities

Estimation

Sampling and the bootstrap

Example: the bootstrap is …

Standard errors

Example: a standard error is …

The CLT

Confidence intervals & hypothesis tests

Conditional probability/expectation

Likelihood

Markov chains

Maximum likelihood

Example: the likelihood is …

Bayesian inference

Example: the posterior is …