Compare Log Loss and Brier Score for Search Rain Probability Forecasts

Last updated: November 29, 2026

Quick Overview

Google Search shows a chance of rain for each location and hour. Two forecasting models produce probabilities of rain; explain how log loss and the Brier score evaluate them, compute both on an example, and say which you would use to pick a model.

Google
Machine Learning
Data Scientist
Google
November 29, 2026
Data Scientist
Technical Screen
Machine Learning
Medium

0

0

0 solved


Google Search shows a chance of rain for each location and hour. Two forecasting models produce probabilities of rain; explain how log loss and the Brier score evaluate them, compute both on an example, and say which you would use to pick a model.

Probability forecasts appear throughout Google products, from weather cards to predicted click rates, and people act on the numbers directly. The interviewer checks that you know proper scoring rules, how they differ in punishing confident mistakes, and how to look at calibration and sharpness separately.

What the Interviewer Expects
  • Defines log loss and Brier score and explains both are proper scoring rules
  • Computes both on a small example
  • Explains log loss's unbounded penalty on confident misses
  • Mentions the Brier decomposition into reliability, resolution, and uncertainty
  • Recommends reliability diagrams alongside a scalar score
Key Topics to Cover
log loss
Brier score
proper scoring rules
calibration
reliability diagram
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • Why is accuracy at a 0.5 threshold a bad metric here?
  • How would you evaluate a forecast of precipitation amount rather than rain or no rain?
  • Users mostly notice when it rains despite a 10 percent forecast. How would that affect your metric choice?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Ask how the label is defined (measurable rain at that location within the hour), how forecasts will be shown (rounded to 10 percent), and how users react to errors. Confident misses, like 1 percent sh...

Approach

Both are proper scoring rules: the expected score is optimized only by reporting true probabilities, so neither can be gamed by shading forecasts.

  • Brier score =1n∑(pi−yi)2= \frac{1}{n}\sum (p_i - y_i)^2,...

Submit Your Answer
Markdown supported