9 questions · 30.5 marks · 7 papers. Try each one before checking.
Solve them and check answers →Read the notes first
Aug 2023 (day not given)
Question Q7 SA · 4.5 marks
$X=\begin{bmatrix}1&0&2&0&3&0\\0&1&0&2&0&3\\0&0&0&0&0&0\end{bmatrix}$ (columns are the six data points).Consider kernel regression with the kernel function $(x_1^Tx_2+2)^2$ applied on the dataset above. The optimal weight vector $w^*$ is given by $w^*=\phi(X)[0.1,2,3.9,5,6,8]^T$, where $\phi$ is the transformation mapping corresponding to the given kernel. What will be the prediction for the data point $[0,0,1]^T$?
Type your answer on the interactive page.
Apr 2026 (06 Apr)
Question Q16 MCQ · 2 marks
Let the linear regression model's solution be written as $w^*=X\alpha$, where $\alpha=[\alpha_1,\alpha_2,\dots,\alpha_n]^T\in\mathbb R^n$. Let $k:\mathbb R^d\times\mathbb R^d\to\mathbb R$ be a valid kernel function. What will be the prediction for an unseen data point $x_{test}$?
- $\sum_{i=1}^nk(x_i,x_{test})$
- $\sum_{i=1}^n\alpha_i$
- $\sum_{i=1}^n\alpha_ik(x_i,x_{test})$
- $\sum_{i=1}^n\alpha_i^2k(x_i,x_{test})$
Dec 2024 (01 Dec)
Question Q3 MCQ · 3 marks
Kernel regression with a polynomial kernel on $X=\begin{bmatrix}1&0&0\\0&1&0\end{bmatrix}$, $y=[2,1,2]^T$. The weight vector is $w=\phi(X)\alpha$, where $\phi$ is the transformation mapping for the kernel $k(x_i,x_j)=(1+x_i^Tx_j)^2$ and $\alpha=K^{-1}y$ with $K$ the kernel matrix.Compute $K$.
- $\begin{pmatrix}1&1&1\\1&4&1\\4&1&1\end{pmatrix}$
- $\begin{pmatrix}1&4&1\\1&1&1\\4&1&1\end{pmatrix}$
- $\begin{pmatrix}4&4&1\\1&1&1\\4&1&1\end{pmatrix}$
- $\begin{pmatrix}4&1&1\\1&4&1\\1&1&1\end{pmatrix}$
Question Q4 SA · 4 marks
Same set-up as the previous question: $X=\begin{bmatrix}1&0&0\\0&1&0\end{bmatrix}$, $y=[2,1,2]^T$, $k=(1+x_i^Tx_j)^2$, $\alpha=K^{-1}y$.What will be the prediction for the data point $[1,-1]^T$? Enter the answer correct to two decimal places.
Type your answer on the interactive page.
Aug 2024 (04 Aug)
Question Q4 SA · 3 marks
Consider the following dataset for a kernel regression problem with a polynomial kernel of degree two along with the coefficient vector $\alpha$: $X=\begin{bmatrix}1&0&-1&0\\0&1&0&-1\end{bmatrix}$, $y=[1,-1,2,-2]^T$, $\alpha=[\alpha_1,-0.625,\alpha_3,\alpha_4]^T$. If the prediction for the data-point $[1,1]^T$ is $0$, find the value of $\alpha_1$.
Type your answer on the interactive page.
Mar 2024 (24 Mar)
Question Q14 SA · 3 marks
Kernel regression with a polynomial kernel of degree three is applied on a data set $\{X,y\}$. Let the weight vector be given by $w=\phi(X)[2.3,-1.0,0.4,-0.7]^T$. Here $\phi(X)$ is the transformed data matrix whose $i^{th}$ column is $\phi(x_i)$. What will be the prediction for the data point $[0,0,0,0]^T$?
Type your answer on the interactive page.
Dec 2023 (day not given)
Question Q4 MSQ · 4 marks
Suppose we transform the data points $X$ using a mapping $\Phi(\cdot)$, and there is a kernel matrix $K$ for the mapping. Definitions: Parametric: the samples in the training set are not necessary for making predictions on a test sample. Non-parametric: all the samples in the training set are necessary for making predictions on a test sample.Check all that is true about the kernel regression.
- The kernel regression is parametric
- The kernel regression is non-parametric
- The Kernel matrix $K$ is positive semi-definite
- In general, Kernel regression is computationally expensive than a simple linear regression
Mar 2025 (16 Mar)
Question Q7 MSQ · 3 marks
Polynomial kernel in kernel regression model is expressed as $K(x,x')=(x^Tx'+1)^d$. What role does $K(x,x')$ play in kernel regression?
- It ensures that the regression model remains linear.
- It computes the similarity between data points in a transformed feature space.
- It allows the model to capture non-linear relationships by mapping data to a higher-dimensional space.
- It helps in reducing the variance of the model.
- It minimizes the loss function in regression problems.
Question Q9 SA · 4 marks
Consider a kernel regression problem on the dataset $\{(x_1,y_1),(x_2,y_2),(x_3,y_3)\}$ with $x_1=[1\ 2]^T,y_1=5$, $x_2=[2\ 3]^T,y_2=6$, $x_3=[3\ 4]^T,y_3=7$. The kernel function is $K(x,x')=(1+x^Tx')^2$ and the optimal coefficients are $\alpha=[0.5\ 1.0\ 1.5]^T$. Then, what will be the predicted value for the data point $[2\ 2]^T$?
Type your answer on the interactive page.
Check your answers →
Weeks covering this topic
Other MLT topics