Homepage › Solution manuals › Yaser Abu-Mostafa › Learning from Data › Exercise 9.5
Exercise 9.5
Answers
We compute the distances between with , we have
Suppose there are s in and s in , then we have
To correctly classify we want to have , which indicates that , i.e. .
So we need compute the probabilities of the number of in is less than or equal to the number of s in . Both and have elements, by symmetry the probability of , i.e. the probability of having more than is equal to the probability of having less than . So we have
, thus
We only have to solve the probability .
For a given , the probability of
So we have
So
This is the probability of classifying correctly with two data points.
If there’s a third data point , then to correctly classify the , we need have both and , so the probability
The probability of correctly classifying the drop about half.