Maths toolkit17 / 17

Lesson 17 · Exam

Maths toolkit exam

These questions cover every lesson in the course, in order. Most test what an idea means. The few sums use numbers you can do in your head, so you don't need a calculator. Pick one answer per question, then press "Check answers" at the bottom to see your score and an explanation for each one.

  1. In machine learning, what base does log⁡x\log x use when no base is written?

  2. What is the dot product (1,2)⋅(3,4)(1, 2) \cdot (3, 4)?

  3. XX is a 4×24 \times 2 matrix and w\mathbf{w} has 2 entries. Each entry of XwX\mathbf{w} is:

  4. What is the determinant of [2111]\begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}?

  5. A 2×22 \times 2 matrix has determinant 0. What does that tell you?

  6. v\mathbf{v} is an eigenvector of AA with eigenvalue 3. What about 2v2\mathbf{v}?

  7. f(3)=9f(3) = 9 and f′(3)=6f'(3) = 6. What does the 6 tell you?

  8. On a contour plot of an error E(w1,w2)E(w_1, w_2), which way does the gradient point?

  9. One stage of a chain doubles any small change in its input. The next stage triples it. A small change at the start gets multiplied by:

  10. f(x)=x2f(x) = x^2, so f(3)=9f(3) = 9 and f′(3)=6f'(3) = 6. What does the linear approximation give for f(3.1)f(3.1)?

  11. A graph shows a car's speed in km/h against time in hours. What does the area under the curve from 0 to 2 hours give?

  12. Out of 100 deliveries, 20 are heavy, and 12 are both heavy and late. What is P(late∣heavy)P(\text{late} \mid \text{heavy})?

  13. A disease affects 1 in 100 people. A test is positive for 90% of people who have it, and for 10% of people who don't. You test positive. About how likely is it that you have the disease?

  14. A fair coin pays 0 or 10 points. What is its expected value?

  15. Delivery times are measured in minutes. What are the units of their variance?

  16. Your estimate is 10. A new sample is 20. With step size α=0.5\alpha = 0.5, what is the new estimate?

  17. A delivery time TT is continuous. Its density at 30 minutes is 0.08 per minute. What is P(T=30)P(T = 30) exactly?

  18. What does the Markov property say?

  19. A Markov chain with transition matrix TT reaches its stationary distribution d\mathbf{d}. What does "stationary" mean?

  20. What is the softmax of the scores (0,0)(0, 0)?

  21. What does raising the temperature do to softmax probabilities?

  22. Measured in bits (log base 2), what is the entropy of a fair coin?

  23. Reality follows pp and a model predicts qq. What is the lowest possible cross-entropy H(p,q)H(p, q)?

  24. Is DKL(p ∥ q)D_{\mathrm{KL}}(p \,\Vert\, q) always equal to DKL(q ∥ p)D_{\mathrm{KL}}(q \,\Vert\, p)?