What does the term in the right mean?











up vote
1
down vote

favorite












Reading an article about clustering, I came across this equality:



enter image description here



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?










share|cite|improve this question




















  • 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

















up vote
1
down vote

favorite












Reading an article about clustering, I came across this equality:



enter image description here



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?










share|cite|improve this question




















  • 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















up vote
1
down vote

favorite









up vote
1
down vote

favorite











Reading an article about clustering, I came across this equality:



enter image description here



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?










share|cite|improve this question















Reading an article about clustering, I came across this equality:



enter image description here



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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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
















  • 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












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.






share|cite|improve this answer





















  • 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











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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

























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.






share|cite|improve this answer





















  • 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















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.






share|cite|improve this answer





















  • 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













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.






share|cite|improve this answer












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.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Nov 24 at 17:04









Clement C.

49.2k33785




49.2k33785












  • 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










  • @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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Bundesstraße 106

Verónica Boquete

Ida-Boy-Ed-Garten