2
$\begingroup$

I have the following statement in a text:

enter image description here

I am not sure how the following expression was expanded to such. Where did the square root 2 come from, and how come we have an i and j iterator in the first term, but not in the second

$\endgroup$
1
  • $\begingroup$ try to work with an example, say $x=(x_1,x_2,x_3)$, and $z=(z_1,z_2,z_3)$ $\endgroup$
    – Haitao Du
    Commented Oct 8, 2018 at 5:04

1 Answer 1

2
$\begingroup$

Might be easier for you if it was written like that: $$ K(x,z) = (x^Tz + c)^2 = x^Tz \cdot z^Tx + 2x^Tz + c^2 $$ $$ = \sum_{i,j = 1}^n (x_iz_i)(x_jz_j) + \sum_{i=1}^n 2c(x_iz_i) + c^2 $$

$\endgroup$
1
  • $\begingroup$ oh..right this is very naive my bad $\endgroup$
    – raaj
    Commented Oct 8, 2018 at 19:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.