AITeky Learn

AiTeky Original Interactive Learning & Practice Advanced

Bayesian machine learning: uncertainty you can use

Describe what you believe with curves, update it with data, sample from it, put honest ranges on predictions, and make decisions with Thompson sampling and expected loss, on a website test and Pune flat rents.

Most models give one number: "the conversion rate is 11.5%", "the rent is 18,200". But a number from a small sample is never exact, and a decision made on it should know how unsure it is. Bayesian methods keep the uncertainty: instead of one number, you keep a whole curve of believable values, and you update the curve as data arrives.

This course shows the idea in four steps. You describe a belief with a prior, update it with data into a posterior, sample from that posterior by hand when no formula exists, and then use it to choose: which website version to ship, which advert to show next, and what range to quote for a rent. Everything is built with NumPy so that you can see each step. You need the probability and statistics courses first.

  • Learn lessons explain one idea at a time, with code you can run and exercises you can repeat.
  • Industry ready lessons decide a website test with the probability of winning and the expected loss, and quote rents with honest ranges when a locality has few flats. Each ends with the interview questions that go with it.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 25 min Free sample πŸ”’ AiTeky Pass Beliefs as curves Describe what you believe about a sign-up rate with a Beta curve, update it with data, read a credible interval, and see how much the starting belief matters when the data is small.
  2. 02 30 min πŸ”’ AiTeky Pass Sampling the posterior by hand When no tidy formula exists, walk through the possible values with the Metropolis method, discard the warm-up, check the chains agree, and answer questions such as "how likely is the rent per square foot to be above 14?"
  3. 03 25 min πŸ”’ AiTeky Pass Regression with honest ranges Fit a Bayesian linear regression to flat rents, read the uncertainty in each coefficient, get a range for every prediction, check whether the range is honest, and see how it behaves with very few rows.
  4. 04 30 min πŸ”’ AiTeky Pass Thompson sampling: learning while earning Choose between three adverts while the campaign is running by drawing one believable rate from each belief curve and showing the advert with the highest draw, then compare it with a fixed split and with epsilon-greedy.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 05 40 min πŸ”’ AiTeky Pass On the job: which page should we ship? Turn a two-week website test into a decision a product head can act on: the probability that B is better, how much it is worth, the expected loss of each choice, a split by device, and a warning about peeking.
  2. 06 40 min πŸ”’ AiTeky Pass On the job: quoting rents with honest ranges Build a rent quote tool that gives a range instead of a single number, check that the range holds up on flats it has not seen, handle localities with few flats by shrinking towards the overall average, and explain it to landlords.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in