Skip to content

AI & ML · Machine Learning Math

Kernels & the kernel trick

120 problems in this skill, each with a solver-verified answer key. Answers are checked the moment you submit — with a hint if you want one and a worked solution afterwards.

What the problems look like

A few statements from this skill. Answers, hints and worked solutions live in the practice session.

  1. Warm-up

    With the homogeneous quadratic kernel k(u,v)=(u⊤v)2k(\mathbf{u}, \mathbf{v}) = (\mathbf{u}^{\top}\mathbf{v})^{2}, the Gram matrix of the points x1=(1,3)\mathbf{x}_1 = (1, 3) and x2=(3,1)\mathbf{x}_2 = (3, 1) has entries Gij=k(xi,xj)G_{ij} = k(\mathbf{x}_i, \mathbf{x}_j). Compute the off-diagonal entry G12G_{12}.

  2. Warm-up

    With the homogeneous quadratic kernel k(u,v)=(u⊤v)2k(\mathbf{u}, \mathbf{v}) = (\mathbf{u}^{\top}\mathbf{v})^{2}, the Gram matrix of the points x1=(2,3)\mathbf{x}_1 = (2, 3) and x2=(2,3)\mathbf{x}_2 = (2, 3) has entries Gij=k(xi,xj)G_{ij} = k(\mathbf{x}_i, \mathbf{x}_j). Compute the off-diagonal entry G12G_{12}.

  3. Warm-up

    With the homogeneous quadratic kernel k(u,v)=(u⊤v)2k(\mathbf{u}, \mathbf{v}) = (\mathbf{u}^{\top}\mathbf{v})^{2}, the Gram matrix of the points x1=(3,1)\mathbf{x}_1 = (3, 1) and x2=(3,1)\mathbf{x}_2 = (3, 1) has entries Gij=k(xi,xj)G_{ij} = k(\mathbf{x}_i, \mathbf{x}_j). Compute the off-diagonal entry G12G_{12}.

Problems shown under their original terms: Generated (template, solver-computed).

Practice this free, right now

Unlimited math practice is on the free plan — no card, no trial clock.

See every Machine Learning Math skill for ai & ml