Four Emails, Two Filters

Loss FunctionsMedium+20 XP+20

Four Emails, Two Filters

Two spam filters are tested on the same four emails. Each filter outputs the probability that an email is spam.

emailtruly spam?Filter A's spam probabilityFilter B's spam probability
1yes0.900.900.900.700.700.70
2no0.200.200.200.300.300.30
3no0.100.100.100.300.300.30
4no0.990.990.990.600.600.60

With a 50%50\%50% cut-off, both filters label emails 1–3 correctly and email 4 wrongly, so both are 75%75\%75% accurate.

Each is scored with cross-entropy: the loss on one email is −ln⁡p-\ln p−lnp, where ppp is the probability the filter gave to that email's true label, and a filter's loss is the average over the four emails.

What is each filter's loss, to 2 decimal places, and which is lower?

0% confident100% confident

The curve is gentle on the right and shoots up on the left. Being almost certain about the wrong answer is punished without limit.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.