cifrivo.

Probability Bayes 8–12 min

Understand Bayes.
With a spam filter.

Change the probabilities, watch what happens and learn to solve a case yourself.

Is it spam or a false alarm?

The filter flagged an email. That does not mean it is right.

%

Out of every 100 emails, 1 are spam.

Emails flagged by the filter
?

What percentage of flagged items are spam?

Composition of flagged emailsGreen represents spam; orange represents legitimate email. 15.4 % of the displayed group is spam. Symbols summarize the proportions; exact counts are below.Each symbol represents 1% of the group.

Green is spam. Orange is a false alarm: a legitimate email flagged by the filter.

The filter detects 90 % of spam. It also flags 5 % of legitimate email.

Adjust the filter
%

De todo el spam, cuánto acaba marcado.

%

Correo legítimo que marca por error.

%

Try “Low” and “High”. The filter works the same way. What changes is how much spam arrives.

Keep experimenting Simulate, compare or share

Try a random sample.

The model gives a probability of

Simulate an inbox. With only a few emails, chance can cause a large variation.

Reproduce this sample

Seed 42. The same seed and rules reproduce the sample.