What does the term in the right mean?
up vote
1
down vote
favorite
Reading an article about clustering, I came across this equality:
It's basically a sum over $ mu_{i,j}(1-cos(x_i, p_j))$ (where $ cos(x_i, p_j) $ is the cosinus between two vectors in $mathbb{R}^n$). And then suddenly some magic happens and the formula in the right appears. Can somebody explain?
Note: I understand that the parenthesis was expanded (each term got multiplied by $ mu_{i,j}$). But what is that huge dot product and why does it have this form?
vectors products
add a comment |
up vote
1
down vote
favorite
Reading an article about clustering, I came across this equality:
It's basically a sum over $ mu_{i,j}(1-cos(x_i, p_j))$ (where $ cos(x_i, p_j) $ is the cosinus between two vectors in $mathbb{R}^n$). And then suddenly some magic happens and the formula in the right appears. Can somebody explain?
Note: I understand that the parenthesis was expanded (each term got multiplied by $ mu_{i,j}$). But what is that huge dot product and why does it have this form?
vectors products
1
Refer to the inner products on $mathbb R^n$. Use the linearity w.r.t. each entry.
– xbh
Nov 24 at 17:00
@xbh I changed R to $mathbb{R}$. I don't understand what you mentioned about the linearity. Oh, ok I'm stupid, you were actually answering my question, not referring to formating. I suck at math.
– Hello Lili
Nov 24 at 17:03
1
$(lambda a+mu b|c) = lambda (a|c) + mu(b|c)$, where $(a|b) = langle a,b rangle$ [and this is just a preference of notations about $(|)$ and $langle,rangle$].
– xbh
Nov 24 at 17:05
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Reading an article about clustering, I came across this equality:
It's basically a sum over $ mu_{i,j}(1-cos(x_i, p_j))$ (where $ cos(x_i, p_j) $ is the cosinus between two vectors in $mathbb{R}^n$). And then suddenly some magic happens and the formula in the right appears. Can somebody explain?
Note: I understand that the parenthesis was expanded (each term got multiplied by $ mu_{i,j}$). But what is that huge dot product and why does it have this form?
vectors products
Reading an article about clustering, I came across this equality:
It's basically a sum over $ mu_{i,j}(1-cos(x_i, p_j))$ (where $ cos(x_i, p_j) $ is the cosinus between two vectors in $mathbb{R}^n$). And then suddenly some magic happens and the formula in the right appears. Can somebody explain?
Note: I understand that the parenthesis was expanded (each term got multiplied by $ mu_{i,j}$). But what is that huge dot product and why does it have this form?
vectors products
vectors products
edited Nov 24 at 17:02
asked Nov 24 at 16:56
Hello Lili
1104
1104
1
Refer to the inner products on $mathbb R^n$. Use the linearity w.r.t. each entry.
– xbh
Nov 24 at 17:00
@xbh I changed R to $mathbb{R}$. I don't understand what you mentioned about the linearity. Oh, ok I'm stupid, you were actually answering my question, not referring to formating. I suck at math.
– Hello Lili
Nov 24 at 17:03
1
$(lambda a+mu b|c) = lambda (a|c) + mu(b|c)$, where $(a|b) = langle a,b rangle$ [and this is just a preference of notations about $(|)$ and $langle,rangle$].
– xbh
Nov 24 at 17:05
add a comment |
1
Refer to the inner products on $mathbb R^n$. Use the linearity w.r.t. each entry.
– xbh
Nov 24 at 17:00
@xbh I changed R to $mathbb{R}$. I don't understand what you mentioned about the linearity. Oh, ok I'm stupid, you were actually answering my question, not referring to formating. I suck at math.
– Hello Lili
Nov 24 at 17:03
1
$(lambda a+mu b|c) = lambda (a|c) + mu(b|c)$, where $(a|b) = langle a,b rangle$ [and this is just a preference of notations about $(|)$ and $langle,rangle$].
– xbh
Nov 24 at 17:05
1
1
Refer to the inner products on $mathbb R^n$. Use the linearity w.r.t. each entry.
– xbh
Nov 24 at 17:00
Refer to the inner products on $mathbb R^n$. Use the linearity w.r.t. each entry.
– xbh
Nov 24 at 17:00
@xbh I changed R to $mathbb{R}$. I don't understand what you mentioned about the linearity. Oh, ok I'm stupid, you were actually answering my question, not referring to formating. I suck at math.
– Hello Lili
Nov 24 at 17:03
@xbh I changed R to $mathbb{R}$. I don't understand what you mentioned about the linearity. Oh, ok I'm stupid, you were actually answering my question, not referring to formating. I suck at math.
– Hello Lili
Nov 24 at 17:03
1
1
$(lambda a+mu b|c) = lambda (a|c) + mu(b|c)$, where $(a|b) = langle a,b rangle$ [and this is just a preference of notations about $(|)$ and $langle,rangle$].
– xbh
Nov 24 at 17:05
$(lambda a+mu b|c) = lambda (a|c) + mu(b|c)$, where $(a|b) = langle a,b rangle$ [and this is just a preference of notations about $(|)$ and $langle,rangle$].
– xbh
Nov 24 at 17:05
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
Remember that the inner product is bilinear: for three vectors $u,v,w$ and scalars $alpha,beta$,
$$
langle alpha u, beta vrangle = alphabetalangle u, vrangle, qquad langle u, v+wrangle = langle u, vrangle+langle u, wrangle
$$
What happened above is exactly what follows when applying these rules: for every $i,j$
$$
frac{langle x_i, p_jrangle}{lVert x_irVertlVert p_jrVert} = leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{1}
$$
since $lVert x_irVert,lVert p_jrVertinmathbb{R}$ are scalars (the brackets became "bigger" just for style considerations, like parentheses would be drawn bigger when what's inside looks "large").
Then, each $mu_{ij}$ is also a scalar, and you have a sum, so
$$
sum_{i} mu_{ij}leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= sum_{i} leftlangle mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= leftlangle sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{2}
$$
Note that it does make sense: $sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}$ is a vector, and so is $frac{p_j}{lVert p_jrVert}$. So it's indeed the inner product between two vectors.
This answers my question. Thank you! I will accept this answer in 3 minutes.
– Hello Lili
Nov 24 at 17:07
@HelloLili Glad this helped!
– Clement C.
Nov 24 at 17:08
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Remember that the inner product is bilinear: for three vectors $u,v,w$ and scalars $alpha,beta$,
$$
langle alpha u, beta vrangle = alphabetalangle u, vrangle, qquad langle u, v+wrangle = langle u, vrangle+langle u, wrangle
$$
What happened above is exactly what follows when applying these rules: for every $i,j$
$$
frac{langle x_i, p_jrangle}{lVert x_irVertlVert p_jrVert} = leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{1}
$$
since $lVert x_irVert,lVert p_jrVertinmathbb{R}$ are scalars (the brackets became "bigger" just for style considerations, like parentheses would be drawn bigger when what's inside looks "large").
Then, each $mu_{ij}$ is also a scalar, and you have a sum, so
$$
sum_{i} mu_{ij}leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= sum_{i} leftlangle mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= leftlangle sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{2}
$$
Note that it does make sense: $sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}$ is a vector, and so is $frac{p_j}{lVert p_jrVert}$. So it's indeed the inner product between two vectors.
This answers my question. Thank you! I will accept this answer in 3 minutes.
– Hello Lili
Nov 24 at 17:07
@HelloLili Glad this helped!
– Clement C.
Nov 24 at 17:08
add a comment |
up vote
1
down vote
accepted
Remember that the inner product is bilinear: for three vectors $u,v,w$ and scalars $alpha,beta$,
$$
langle alpha u, beta vrangle = alphabetalangle u, vrangle, qquad langle u, v+wrangle = langle u, vrangle+langle u, wrangle
$$
What happened above is exactly what follows when applying these rules: for every $i,j$
$$
frac{langle x_i, p_jrangle}{lVert x_irVertlVert p_jrVert} = leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{1}
$$
since $lVert x_irVert,lVert p_jrVertinmathbb{R}$ are scalars (the brackets became "bigger" just for style considerations, like parentheses would be drawn bigger when what's inside looks "large").
Then, each $mu_{ij}$ is also a scalar, and you have a sum, so
$$
sum_{i} mu_{ij}leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= sum_{i} leftlangle mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= leftlangle sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{2}
$$
Note that it does make sense: $sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}$ is a vector, and so is $frac{p_j}{lVert p_jrVert}$. So it's indeed the inner product between two vectors.
This answers my question. Thank you! I will accept this answer in 3 minutes.
– Hello Lili
Nov 24 at 17:07
@HelloLili Glad this helped!
– Clement C.
Nov 24 at 17:08
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Remember that the inner product is bilinear: for three vectors $u,v,w$ and scalars $alpha,beta$,
$$
langle alpha u, beta vrangle = alphabetalangle u, vrangle, qquad langle u, v+wrangle = langle u, vrangle+langle u, wrangle
$$
What happened above is exactly what follows when applying these rules: for every $i,j$
$$
frac{langle x_i, p_jrangle}{lVert x_irVertlVert p_jrVert} = leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{1}
$$
since $lVert x_irVert,lVert p_jrVertinmathbb{R}$ are scalars (the brackets became "bigger" just for style considerations, like parentheses would be drawn bigger when what's inside looks "large").
Then, each $mu_{ij}$ is also a scalar, and you have a sum, so
$$
sum_{i} mu_{ij}leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= sum_{i} leftlangle mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= leftlangle sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{2}
$$
Note that it does make sense: $sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}$ is a vector, and so is $frac{p_j}{lVert p_jrVert}$. So it's indeed the inner product between two vectors.
Remember that the inner product is bilinear: for three vectors $u,v,w$ and scalars $alpha,beta$,
$$
langle alpha u, beta vrangle = alphabetalangle u, vrangle, qquad langle u, v+wrangle = langle u, vrangle+langle u, wrangle
$$
What happened above is exactly what follows when applying these rules: for every $i,j$
$$
frac{langle x_i, p_jrangle}{lVert x_irVertlVert p_jrVert} = leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{1}
$$
since $lVert x_irVert,lVert p_jrVertinmathbb{R}$ are scalars (the brackets became "bigger" just for style considerations, like parentheses would be drawn bigger when what's inside looks "large").
Then, each $mu_{ij}$ is also a scalar, and you have a sum, so
$$
sum_{i} mu_{ij}leftlangle frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= sum_{i} leftlangle mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle
= leftlangle sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}, frac{p_j}{lVert p_jrVert}rightrangle tag{2}
$$
Note that it does make sense: $sum_{i}mu_{ij}frac{x_i}{lVert x_irVert}$ is a vector, and so is $frac{p_j}{lVert p_jrVert}$. So it's indeed the inner product between two vectors.
answered Nov 24 at 17:04
Clement C.
49.1k33785
49.1k33785
This answers my question. Thank you! I will accept this answer in 3 minutes.
– Hello Lili
Nov 24 at 17:07
@HelloLili Glad this helped!
– Clement C.
Nov 24 at 17:08
add a comment |
This answers my question. Thank you! I will accept this answer in 3 minutes.
– Hello Lili
Nov 24 at 17:07
@HelloLili Glad this helped!
– Clement C.
Nov 24 at 17:08
This answers my question. Thank you! I will accept this answer in 3 minutes.
– Hello Lili
Nov 24 at 17:07
This answers my question. Thank you! I will accept this answer in 3 minutes.
– Hello Lili
Nov 24 at 17:07
@HelloLili Glad this helped!
– Clement C.
Nov 24 at 17:08
@HelloLili Glad this helped!
– Clement C.
Nov 24 at 17:08
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3011790%2fwhat-does-the-term-in-the-right-mean%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Refer to the inner products on $mathbb R^n$. Use the linearity w.r.t. each entry.
– xbh
Nov 24 at 17:00
@xbh I changed R to $mathbb{R}$. I don't understand what you mentioned about the linearity. Oh, ok I'm stupid, you were actually answering my question, not referring to formating. I suck at math.
– Hello Lili
Nov 24 at 17:03
1
$(lambda a+mu b|c) = lambda (a|c) + mu(b|c)$, where $(a|b) = langle a,b rangle$ [and this is just a preference of notations about $(|)$ and $langle,rangle$].
– xbh
Nov 24 at 17:05