Expected Number of edges in the graph












0












$begingroup$


G(V,E) is a simple graph with 8 vertices. The edges of G are decided by tossing the coin for each 2 vertices combination. Edge is added between any two vertices iff head is turned up. Expected number of edges in the Graph G(V,E) is.



I thought of doing like this



Let X be a random variable denoting the number of edges in the graph.



Total possible edges->$_8C_2=28$



Now, for each of those 28 edges, we tossed a coin and if it turned out to be heads,that edge was included.



(1)X=0,P(X)=$_{28}C_0 frac{1}{2^{28}}$. All those 28 tosses of coin are independent with probability of heads=Probability of getting tails=$frac{1}{2}$



(2)X=1(One edge), P(X)=$_{28}C_1 timesfrac{1}{2} times frac{1}{2^{27}}$-Means in those 28 trials, exactly 1 heads and rest tails.



(3)Similarly for all 28 edges-> $X=28,P(X)=_{28}C_{28} times frac{1}{2^{28}}$



And then we add all cases of X from 0 to 28 because $E[X]=sum x.p(x)$



But this all together seems to be a very huge number and answer is given to be 14, where I am wrong in my reasoning?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Two remarks: (1) What you tried to write, is not very clear. You do not define what the $C_0,C_1,C_2,...$ are. (2) The problem becomes much simpler if you were to use the linearity of the expectation. By finding a collection of 'simple' random variables for which the calculation of expectation is simple, and that sum up to $X$, you will have simplified the problem many times over.
    $endgroup$
    – Keen-ameteur
    Dec 17 '18 at 6:31












  • $begingroup$
    It is not such a "very huge number" because the factor $frac1{2^{28}}$ is pretty small.
    $endgroup$
    – bof
    Dec 17 '18 at 7:06


















0












$begingroup$


G(V,E) is a simple graph with 8 vertices. The edges of G are decided by tossing the coin for each 2 vertices combination. Edge is added between any two vertices iff head is turned up. Expected number of edges in the Graph G(V,E) is.



I thought of doing like this



Let X be a random variable denoting the number of edges in the graph.



Total possible edges->$_8C_2=28$



Now, for each of those 28 edges, we tossed a coin and if it turned out to be heads,that edge was included.



(1)X=0,P(X)=$_{28}C_0 frac{1}{2^{28}}$. All those 28 tosses of coin are independent with probability of heads=Probability of getting tails=$frac{1}{2}$



(2)X=1(One edge), P(X)=$_{28}C_1 timesfrac{1}{2} times frac{1}{2^{27}}$-Means in those 28 trials, exactly 1 heads and rest tails.



(3)Similarly for all 28 edges-> $X=28,P(X)=_{28}C_{28} times frac{1}{2^{28}}$



And then we add all cases of X from 0 to 28 because $E[X]=sum x.p(x)$



But this all together seems to be a very huge number and answer is given to be 14, where I am wrong in my reasoning?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Two remarks: (1) What you tried to write, is not very clear. You do not define what the $C_0,C_1,C_2,...$ are. (2) The problem becomes much simpler if you were to use the linearity of the expectation. By finding a collection of 'simple' random variables for which the calculation of expectation is simple, and that sum up to $X$, you will have simplified the problem many times over.
    $endgroup$
    – Keen-ameteur
    Dec 17 '18 at 6:31












  • $begingroup$
    It is not such a "very huge number" because the factor $frac1{2^{28}}$ is pretty small.
    $endgroup$
    – bof
    Dec 17 '18 at 7:06
















0












0








0





$begingroup$


G(V,E) is a simple graph with 8 vertices. The edges of G are decided by tossing the coin for each 2 vertices combination. Edge is added between any two vertices iff head is turned up. Expected number of edges in the Graph G(V,E) is.



I thought of doing like this



Let X be a random variable denoting the number of edges in the graph.



Total possible edges->$_8C_2=28$



Now, for each of those 28 edges, we tossed a coin and if it turned out to be heads,that edge was included.



(1)X=0,P(X)=$_{28}C_0 frac{1}{2^{28}}$. All those 28 tosses of coin are independent with probability of heads=Probability of getting tails=$frac{1}{2}$



(2)X=1(One edge), P(X)=$_{28}C_1 timesfrac{1}{2} times frac{1}{2^{27}}$-Means in those 28 trials, exactly 1 heads and rest tails.



(3)Similarly for all 28 edges-> $X=28,P(X)=_{28}C_{28} times frac{1}{2^{28}}$



And then we add all cases of X from 0 to 28 because $E[X]=sum x.p(x)$



But this all together seems to be a very huge number and answer is given to be 14, where I am wrong in my reasoning?










share|cite|improve this question











$endgroup$




G(V,E) is a simple graph with 8 vertices. The edges of G are decided by tossing the coin for each 2 vertices combination. Edge is added between any two vertices iff head is turned up. Expected number of edges in the Graph G(V,E) is.



I thought of doing like this



Let X be a random variable denoting the number of edges in the graph.



Total possible edges->$_8C_2=28$



Now, for each of those 28 edges, we tossed a coin and if it turned out to be heads,that edge was included.



(1)X=0,P(X)=$_{28}C_0 frac{1}{2^{28}}$. All those 28 tosses of coin are independent with probability of heads=Probability of getting tails=$frac{1}{2}$



(2)X=1(One edge), P(X)=$_{28}C_1 timesfrac{1}{2} times frac{1}{2^{27}}$-Means in those 28 trials, exactly 1 heads and rest tails.



(3)Similarly for all 28 edges-> $X=28,P(X)=_{28}C_{28} times frac{1}{2^{28}}$



And then we add all cases of X from 0 to 28 because $E[X]=sum x.p(x)$



But this all together seems to be a very huge number and answer is given to be 14, where I am wrong in my reasoning?







probability graph-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 17 '18 at 7:04









bof

52.5k558121




52.5k558121










asked Dec 17 '18 at 6:20









user3767495user3767495

4078




4078












  • $begingroup$
    Two remarks: (1) What you tried to write, is not very clear. You do not define what the $C_0,C_1,C_2,...$ are. (2) The problem becomes much simpler if you were to use the linearity of the expectation. By finding a collection of 'simple' random variables for which the calculation of expectation is simple, and that sum up to $X$, you will have simplified the problem many times over.
    $endgroup$
    – Keen-ameteur
    Dec 17 '18 at 6:31












  • $begingroup$
    It is not such a "very huge number" because the factor $frac1{2^{28}}$ is pretty small.
    $endgroup$
    – bof
    Dec 17 '18 at 7:06




















  • $begingroup$
    Two remarks: (1) What you tried to write, is not very clear. You do not define what the $C_0,C_1,C_2,...$ are. (2) The problem becomes much simpler if you were to use the linearity of the expectation. By finding a collection of 'simple' random variables for which the calculation of expectation is simple, and that sum up to $X$, you will have simplified the problem many times over.
    $endgroup$
    – Keen-ameteur
    Dec 17 '18 at 6:31












  • $begingroup$
    It is not such a "very huge number" because the factor $frac1{2^{28}}$ is pretty small.
    $endgroup$
    – bof
    Dec 17 '18 at 7:06


















$begingroup$
Two remarks: (1) What you tried to write, is not very clear. You do not define what the $C_0,C_1,C_2,...$ are. (2) The problem becomes much simpler if you were to use the linearity of the expectation. By finding a collection of 'simple' random variables for which the calculation of expectation is simple, and that sum up to $X$, you will have simplified the problem many times over.
$endgroup$
– Keen-ameteur
Dec 17 '18 at 6:31






$begingroup$
Two remarks: (1) What you tried to write, is not very clear. You do not define what the $C_0,C_1,C_2,...$ are. (2) The problem becomes much simpler if you were to use the linearity of the expectation. By finding a collection of 'simple' random variables for which the calculation of expectation is simple, and that sum up to $X$, you will have simplified the problem many times over.
$endgroup$
– Keen-ameteur
Dec 17 '18 at 6:31














$begingroup$
It is not such a "very huge number" because the factor $frac1{2^{28}}$ is pretty small.
$endgroup$
– bof
Dec 17 '18 at 7:06






$begingroup$
It is not such a "very huge number" because the factor $frac1{2^{28}}$ is pretty small.
$endgroup$
– bof
Dec 17 '18 at 7:06












1 Answer
1






active

oldest

votes


















1












$begingroup$

In other words, you want to know the expected number of times you're going to get heads in $28$ independent tosses of a fair coin. To do it your way, you can add up the $29$ terms by hand, or you can use the identity
$$sum_{k=0}^nkbinom nk=n2^{n-1}tag1$$
which is obtained by differentiating the binomial identity
$$(1+x)^n=sum_{k=0}^nbinom nkx^n$$
with respect to $x$ and then setting $x=1$. Using $(1)$ we get
$$E(X)=sum_{k=0}^{28}kbinom{28}kleft(frac12right)^kleft(frac12right)^{28-k}=left(frac12right)^{28}sum_{k=0}^{28}kbinom{28}k=left(frac12right)^{28}cdot28cdot2^{27}=14.$$



This shows that, if you toss a coin $28$ times, on average you're going to get $14$ heads. You can get the same result more easily by using the additivity of expectations: if $X$ is the sum of $28$ random variables, each of which has an expected value of $frac12$, then the expected value of $X$ is $28cdotfrac12=14$.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Another way to find $sum_{k=0}^n k binom nk$ is to substitute $binom nk = frac nk binom{n-1}{k-1}$ in all except the $k=0$ term, getting $sum_{k=1}^n n binom{n-1}{k-1} = n sum_{j=0}^{n-1}binom{n-1}{j} = n2^{n-1}$.
    $endgroup$
    – Misha Lavrov
    Dec 18 '18 at 4:18











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%2f3043596%2fexpected-number-of-edges-in-the-graph%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









1












$begingroup$

In other words, you want to know the expected number of times you're going to get heads in $28$ independent tosses of a fair coin. To do it your way, you can add up the $29$ terms by hand, or you can use the identity
$$sum_{k=0}^nkbinom nk=n2^{n-1}tag1$$
which is obtained by differentiating the binomial identity
$$(1+x)^n=sum_{k=0}^nbinom nkx^n$$
with respect to $x$ and then setting $x=1$. Using $(1)$ we get
$$E(X)=sum_{k=0}^{28}kbinom{28}kleft(frac12right)^kleft(frac12right)^{28-k}=left(frac12right)^{28}sum_{k=0}^{28}kbinom{28}k=left(frac12right)^{28}cdot28cdot2^{27}=14.$$



This shows that, if you toss a coin $28$ times, on average you're going to get $14$ heads. You can get the same result more easily by using the additivity of expectations: if $X$ is the sum of $28$ random variables, each of which has an expected value of $frac12$, then the expected value of $X$ is $28cdotfrac12=14$.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Another way to find $sum_{k=0}^n k binom nk$ is to substitute $binom nk = frac nk binom{n-1}{k-1}$ in all except the $k=0$ term, getting $sum_{k=1}^n n binom{n-1}{k-1} = n sum_{j=0}^{n-1}binom{n-1}{j} = n2^{n-1}$.
    $endgroup$
    – Misha Lavrov
    Dec 18 '18 at 4:18
















1












$begingroup$

In other words, you want to know the expected number of times you're going to get heads in $28$ independent tosses of a fair coin. To do it your way, you can add up the $29$ terms by hand, or you can use the identity
$$sum_{k=0}^nkbinom nk=n2^{n-1}tag1$$
which is obtained by differentiating the binomial identity
$$(1+x)^n=sum_{k=0}^nbinom nkx^n$$
with respect to $x$ and then setting $x=1$. Using $(1)$ we get
$$E(X)=sum_{k=0}^{28}kbinom{28}kleft(frac12right)^kleft(frac12right)^{28-k}=left(frac12right)^{28}sum_{k=0}^{28}kbinom{28}k=left(frac12right)^{28}cdot28cdot2^{27}=14.$$



This shows that, if you toss a coin $28$ times, on average you're going to get $14$ heads. You can get the same result more easily by using the additivity of expectations: if $X$ is the sum of $28$ random variables, each of which has an expected value of $frac12$, then the expected value of $X$ is $28cdotfrac12=14$.






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    Another way to find $sum_{k=0}^n k binom nk$ is to substitute $binom nk = frac nk binom{n-1}{k-1}$ in all except the $k=0$ term, getting $sum_{k=1}^n n binom{n-1}{k-1} = n sum_{j=0}^{n-1}binom{n-1}{j} = n2^{n-1}$.
    $endgroup$
    – Misha Lavrov
    Dec 18 '18 at 4:18














1












1








1





$begingroup$

In other words, you want to know the expected number of times you're going to get heads in $28$ independent tosses of a fair coin. To do it your way, you can add up the $29$ terms by hand, or you can use the identity
$$sum_{k=0}^nkbinom nk=n2^{n-1}tag1$$
which is obtained by differentiating the binomial identity
$$(1+x)^n=sum_{k=0}^nbinom nkx^n$$
with respect to $x$ and then setting $x=1$. Using $(1)$ we get
$$E(X)=sum_{k=0}^{28}kbinom{28}kleft(frac12right)^kleft(frac12right)^{28-k}=left(frac12right)^{28}sum_{k=0}^{28}kbinom{28}k=left(frac12right)^{28}cdot28cdot2^{27}=14.$$



This shows that, if you toss a coin $28$ times, on average you're going to get $14$ heads. You can get the same result more easily by using the additivity of expectations: if $X$ is the sum of $28$ random variables, each of which has an expected value of $frac12$, then the expected value of $X$ is $28cdotfrac12=14$.






share|cite|improve this answer











$endgroup$



In other words, you want to know the expected number of times you're going to get heads in $28$ independent tosses of a fair coin. To do it your way, you can add up the $29$ terms by hand, or you can use the identity
$$sum_{k=0}^nkbinom nk=n2^{n-1}tag1$$
which is obtained by differentiating the binomial identity
$$(1+x)^n=sum_{k=0}^nbinom nkx^n$$
with respect to $x$ and then setting $x=1$. Using $(1)$ we get
$$E(X)=sum_{k=0}^{28}kbinom{28}kleft(frac12right)^kleft(frac12right)^{28-k}=left(frac12right)^{28}sum_{k=0}^{28}kbinom{28}k=left(frac12right)^{28}cdot28cdot2^{27}=14.$$



This shows that, if you toss a coin $28$ times, on average you're going to get $14$ heads. You can get the same result more easily by using the additivity of expectations: if $X$ is the sum of $28$ random variables, each of which has an expected value of $frac12$, then the expected value of $X$ is $28cdotfrac12=14$.







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Dec 18 '18 at 2:49

























answered Dec 17 '18 at 7:28









bofbof

52.5k558121




52.5k558121








  • 1




    $begingroup$
    Another way to find $sum_{k=0}^n k binom nk$ is to substitute $binom nk = frac nk binom{n-1}{k-1}$ in all except the $k=0$ term, getting $sum_{k=1}^n n binom{n-1}{k-1} = n sum_{j=0}^{n-1}binom{n-1}{j} = n2^{n-1}$.
    $endgroup$
    – Misha Lavrov
    Dec 18 '18 at 4:18














  • 1




    $begingroup$
    Another way to find $sum_{k=0}^n k binom nk$ is to substitute $binom nk = frac nk binom{n-1}{k-1}$ in all except the $k=0$ term, getting $sum_{k=1}^n n binom{n-1}{k-1} = n sum_{j=0}^{n-1}binom{n-1}{j} = n2^{n-1}$.
    $endgroup$
    – Misha Lavrov
    Dec 18 '18 at 4:18








1




1




$begingroup$
Another way to find $sum_{k=0}^n k binom nk$ is to substitute $binom nk = frac nk binom{n-1}{k-1}$ in all except the $k=0$ term, getting $sum_{k=1}^n n binom{n-1}{k-1} = n sum_{j=0}^{n-1}binom{n-1}{j} = n2^{n-1}$.
$endgroup$
– Misha Lavrov
Dec 18 '18 at 4:18




$begingroup$
Another way to find $sum_{k=0}^n k binom nk$ is to substitute $binom nk = frac nk binom{n-1}{k-1}$ in all except the $k=0$ term, getting $sum_{k=1}^n n binom{n-1}{k-1} = n sum_{j=0}^{n-1}binom{n-1}{j} = n2^{n-1}$.
$endgroup$
– Misha Lavrov
Dec 18 '18 at 4:18


















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%2f3043596%2fexpected-number-of-edges-in-the-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

Plaza Victoria

In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...