
- Data Scientists analyze historical weather to estimate patterns and probabilities.
- Machine Learning Engineers train models that output probability estimates.
- Meteorologists integrate models, observations, and expertise to produce forecast probabilities.




Random variables: discrete vs continuous
A random variable maps outcomes to numbers so we can analyze uncertainty mathematically.| Type | What it represents | Examples |
|---|---|---|
| Discrete | Countable outcomes | die roll = {1,2,3,4,5,6}, number of customers = 15 |
| Continuous | Measured values on a continuum | height = 170.2 cm, temperature = 21.7 °C |

rain = 1, no rain = 0. These encoded values let us treat categorical events as random variables.
A probability distribution assigns probabilities to each possible outcome. For a fair six-sided die:P(1) = 1/6, P(2) = 1/6, ..., P(6) = 1/6, which we can visualize as a bar chart.

Bernoulli distribution — single yes/no events
The Bernoulli distribution models a single trial with two outcomes: success (1) or failure (0). Typical use cases include “raining vs not raining”, “spam vs not spam”, or “positive vs negative test”. For a Bernoulli random variable X with success probabilityp, the probability mass function (PMF) can be written compactly:
P(X = 1) = pP(X = 0) = 1 − p
p = 0.7 for rain:

p = 0.5. If both bars are 50% each, outcomes are equally likely.

- Encodes both outcomes in one expression,
- Is trivial to implement in code and statistical libraries,
- Serves as a building block for more complex models (e.g., Binomial, logistic regression, Bernoulli likelihoods in Bayesian inference).
p = 0.7:

p come from? From data and models. Meteorologists combine historical observations, model ensembles, and simulations to estimate probabilities. For example, if 7 out of 10 model ensemble members predict rain, that supports p ≈ 0.7. Probabilities summarize evidence, not guarantee single outcomes.

Expected value of a Bernoulli
The expected value (mean) E[X] describes the long-run average outcome after many independent trials. For Bernoulli X:p = 0.7, E[X] = 0.7. That is why a 70% predicted probability can be read as a long-run fraction of occurrences.

The Bernoulli distribution models single yes/no outcomes. Its expected value equals the success probability
p, which is why a predicted probability (like 70%) can be interpreted as the long-run fraction of successes.Quick references and further reading
- Bernoulli distribution — Wikipedia: https://en.wikipedia.org/wiki/Bernoulli_distribution
- NOAA forecasting and probabilistic guidance: https://www.noaa.gov/
- Intro to probability and statistics for machine learning — scikit-learn documentation: https://scikit-learn.org/stable/