Skip to content
IT glossary
Data and MLUpdated December 3, 2026

Probability theory

Теория вероятностей

Probability theory is the branch of math that describes uncertainty and lets you calculate how likely an event is. Probabilities range from 0 to 1 and are often written as percentages.

Also known as: вероятность

What probability theory describes

Suppose a monitoring system sometimes raises an alert when a service is healthy. The outcome of the next check is uncertain, but a probability model lets you ask specific questions: How often do healthy services trigger alerts? If an alert fires, how likely is it that the service is actually down? Those are different questions, and the difference matters when deciding whether to page someone.

Outcomes, events, and distributions

An outcome is one possible result of an experiment or observation. An event is a set of outcomes you care about. For a die roll, the event “roll an even number” includes 2, 4, and 6. Its probability is 3/6 for a fair six-sided die. Counting favorable outcomes and dividing by the total only works when there are finitely many outcomes and they are equally likely.

A random variable assigns a number to each outcome: for example, 1 if a check raises an alert and 0 otherwise. You can sum those values across checks to count alerts. The count's distribution tells you how likely each total is. Its expected value is the average count you'd approach over many repetitions under the same conditions, not a guarantee about any one batch.

Example: what does an alert tell you?

Imagine 10,000 service checks. The service is down in 100 of them, and the monitor alerts on 90 of those outages. It also alerts on 1% of healthy checks, adding 99 false alerts. Of the 189 alerts, 90 correspond to an outage, so the probability of an outage given an alert is about 48%.

That's conditional probability. P(alert | outage) is 90%, while P(outage | alert) is about 48%. Reversing the condition changes which cases you're counting. Bayes' rule relates these two probabilities and accounts for the base rate: outages are rare, so even a low false-alert rate can produce many false alerts.

Where it shows up in IT

In A/B testing, probability models describe how much conversion rates might vary even when a change has no effect. In machine learning, a classifier can estimate the probability of a label, and the team can choose a threshold based on the costs of false positives and false negatives. Probability reasons from a model to possible observations; statistics uses observations to estimate or test the model. An observed error rate is an estimate, not an exact model probability.

What interviewers look for

In data and ML interviews, you'll often be asked to calculate the chance of “at least one” occurrence or update a probability after seeing evidence. For “at least one,” start with 1 − P(none). If two checks each have a 10% chance of alerting and are independent, the chance of at least one alert is 1 − 0.9² = 19%. Explain why independence matters: if both checks rely on the same component, one alert may make the other more likely, so you can't simply multiply the individual probabilities.