Number of 'Tri - Coloured Triangles' in a random graph.












0












$begingroup$


I am attempting some practice questions where no answers are given. Would it be possible to verify my solution for this particular problem?



Let RBG be a coloured random graph with $n$ vertices ${1, 2, · · · , n}$, where every
pair of vertices is connected either by a red edge (with probability $p$) or by a blue edge (with
probability $q$) or by a green edge (with probability $r$), such that $p + q + r = 1$. (Note that all
edges are present, but each edge carries exactly one of three different colours - red, blue or green)



A set of three vertices ${i, j, k$} is said to form a “tri-coloured triangle” if
the triangle formed by ${i, j, k}$ has exactly one red edge, exactly one blue edge and exactly
one green edge. Let $N_3$ denote the number of tri-coloured triangles in the coloured random
graph RBG. Calculate $E(N_3)$



My approach is as follows



Given a triangle, there are $3! = 6$ ways of colouring the triangle such that each edge has a distinct colour.



Therefore, $P(text{A triangle is tri - coloured}) = 6pqr$.



There are ${n}choose{3}$ ways of choosing 3 vertices in the random graph.



Therefore, $E(N_3) =$ ${n}choose{3}$ $6pqr = n(n-1)(n-2)pqr$










share|cite|improve this question









$endgroup$












  • $begingroup$
    Perfect, except for five missing full stops.
    $endgroup$
    – bof
    Dec 2 '18 at 4:55










  • $begingroup$
    Thank you, @bof ! :)
    $endgroup$
    – dzl
    Dec 3 '18 at 5:27
















0












$begingroup$


I am attempting some practice questions where no answers are given. Would it be possible to verify my solution for this particular problem?



Let RBG be a coloured random graph with $n$ vertices ${1, 2, · · · , n}$, where every
pair of vertices is connected either by a red edge (with probability $p$) or by a blue edge (with
probability $q$) or by a green edge (with probability $r$), such that $p + q + r = 1$. (Note that all
edges are present, but each edge carries exactly one of three different colours - red, blue or green)



A set of three vertices ${i, j, k$} is said to form a “tri-coloured triangle” if
the triangle formed by ${i, j, k}$ has exactly one red edge, exactly one blue edge and exactly
one green edge. Let $N_3$ denote the number of tri-coloured triangles in the coloured random
graph RBG. Calculate $E(N_3)$



My approach is as follows



Given a triangle, there are $3! = 6$ ways of colouring the triangle such that each edge has a distinct colour.



Therefore, $P(text{A triangle is tri - coloured}) = 6pqr$.



There are ${n}choose{3}$ ways of choosing 3 vertices in the random graph.



Therefore, $E(N_3) =$ ${n}choose{3}$ $6pqr = n(n-1)(n-2)pqr$










share|cite|improve this question









$endgroup$












  • $begingroup$
    Perfect, except for five missing full stops.
    $endgroup$
    – bof
    Dec 2 '18 at 4:55










  • $begingroup$
    Thank you, @bof ! :)
    $endgroup$
    – dzl
    Dec 3 '18 at 5:27














0












0








0





$begingroup$


I am attempting some practice questions where no answers are given. Would it be possible to verify my solution for this particular problem?



Let RBG be a coloured random graph with $n$ vertices ${1, 2, · · · , n}$, where every
pair of vertices is connected either by a red edge (with probability $p$) or by a blue edge (with
probability $q$) or by a green edge (with probability $r$), such that $p + q + r = 1$. (Note that all
edges are present, but each edge carries exactly one of three different colours - red, blue or green)



A set of three vertices ${i, j, k$} is said to form a “tri-coloured triangle” if
the triangle formed by ${i, j, k}$ has exactly one red edge, exactly one blue edge and exactly
one green edge. Let $N_3$ denote the number of tri-coloured triangles in the coloured random
graph RBG. Calculate $E(N_3)$



My approach is as follows



Given a triangle, there are $3! = 6$ ways of colouring the triangle such that each edge has a distinct colour.



Therefore, $P(text{A triangle is tri - coloured}) = 6pqr$.



There are ${n}choose{3}$ ways of choosing 3 vertices in the random graph.



Therefore, $E(N_3) =$ ${n}choose{3}$ $6pqr = n(n-1)(n-2)pqr$










share|cite|improve this question









$endgroup$




I am attempting some practice questions where no answers are given. Would it be possible to verify my solution for this particular problem?



Let RBG be a coloured random graph with $n$ vertices ${1, 2, · · · , n}$, where every
pair of vertices is connected either by a red edge (with probability $p$) or by a blue edge (with
probability $q$) or by a green edge (with probability $r$), such that $p + q + r = 1$. (Note that all
edges are present, but each edge carries exactly one of three different colours - red, blue or green)



A set of three vertices ${i, j, k$} is said to form a “tri-coloured triangle” if
the triangle formed by ${i, j, k}$ has exactly one red edge, exactly one blue edge and exactly
one green edge. Let $N_3$ denote the number of tri-coloured triangles in the coloured random
graph RBG. Calculate $E(N_3)$



My approach is as follows



Given a triangle, there are $3! = 6$ ways of colouring the triangle such that each edge has a distinct colour.



Therefore, $P(text{A triangle is tri - coloured}) = 6pqr$.



There are ${n}choose{3}$ ways of choosing 3 vertices in the random graph.



Therefore, $E(N_3) =$ ${n}choose{3}$ $6pqr = n(n-1)(n-2)pqr$







probability graph-theory expected-value






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Dec 2 '18 at 4:50









dzldzl

348214




348214












  • $begingroup$
    Perfect, except for five missing full stops.
    $endgroup$
    – bof
    Dec 2 '18 at 4:55










  • $begingroup$
    Thank you, @bof ! :)
    $endgroup$
    – dzl
    Dec 3 '18 at 5:27


















  • $begingroup$
    Perfect, except for five missing full stops.
    $endgroup$
    – bof
    Dec 2 '18 at 4:55










  • $begingroup$
    Thank you, @bof ! :)
    $endgroup$
    – dzl
    Dec 3 '18 at 5:27
















$begingroup$
Perfect, except for five missing full stops.
$endgroup$
– bof
Dec 2 '18 at 4:55




$begingroup$
Perfect, except for five missing full stops.
$endgroup$
– bof
Dec 2 '18 at 4:55












$begingroup$
Thank you, @bof ! :)
$endgroup$
– dzl
Dec 3 '18 at 5:27




$begingroup$
Thank you, @bof ! :)
$endgroup$
– dzl
Dec 3 '18 at 5:27










0






active

oldest

votes











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%2f3022248%2fnumber-of-tri-coloured-triangles-in-a-random-graph%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3022248%2fnumber-of-tri-coloured-triangles-in-a-random-graph%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

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei