Interview on math/statistics.
1. In a fully-connected graph, each *edge* is painted with one of two colours. Find the probability that the graph contains a fully-connected subgraph on 3 vertices that has edges of different colours.
2. In a city, 85% of all cars are green, and 15% of cars are red. There happened an accident. The witness claims that a red car is to blame. The probability the witness is correct is only 80%. Compute the posterior probability that the car was red given the witness’ words.
3. There is a ranking algorithm that maps pairs (query, documents) to relevance values. The loss function that compares the predicted relevance to the ground-truth relevance, is given. We can add a new feature of the pair (query, document). How to detect if it improves the model significantly? What if we have several candidate features?