mean of buying different colored candy(tricky)












0












$begingroup$


i am having a problem with the following problem:



a guy loves his girlfriend, so he buys her each day a new bag of colored candies. there's no dependancy between bags of candy in different days.



a)what is the mean of number of candy bags he'll buy, if in each bag there are exactly two candies, and each candy can be in one of three colors: red, green and blue, with the probability of red:1/8, green:1/4, blue: 5/8, and the guy will keep buying candy bags until she gets at least 2 green candies?



b)what is the mean of the number of colors of candy that his girlfriend will have, if he buys exactly 10 bags, and in each bag there's only one candy, in one of 6 colors, in same probability?



here's what i tried, even though i don't know exactly how to continue:



a)let X be the number of candy bags he'll buy until there are at least 2 green candies. $X_1+X_2=X$, where $X_1$ will be the number of bags he bought and there's one green candy, and $X_2$ the amount of bags he'll have to buy until obtaining 2 green candies. so $E(X) = E(x_1) + E(x_2)$, and for $x_1$ he needs to keep buying bags until the first success, so it's a geometric distribution, so it's $x_1 ~ geo(1-0.25=0.75)$. then the mean is $E(x_1) = 1/p = frac{4}{3}$. next it's the second part of the experiment, where he continues buying until he gets the second one is the same, we need to continue until we get the second one so $x_4 ~ geo(1-1/4=3/4)$. from here i don't know how to continue or if what i did is correct.



b) for each of the 6 possible colors, $X_i$ is defined to be 1 if the colors i was obtained once, or 0 otherwise. thus, $X=sum_{i=1}^6X_i$ is the number of 6 colored candies in 10 bags. so i need to find $p(x_i=1)=1-p(x_i=0)=1-frac{5}{6}^{10}=0.8385$ so $E[x]=E[sum_{i=1}^6x_i]=sum_{i=1}^6E[x_i]=6*0.8385$. is this correct?



hoping that what i did so far is correct, would appreciate learning what i did wrong and how to improve. thank you very much for your help!










share|cite|improve this question









$endgroup$












  • $begingroup$
    You are correct on (b). For (a), you might take a look at the negative binomial distribution. en.wikipedia.org/wiki/Negative_binomial_distribution
    $endgroup$
    – awkward
    Feb 7 at 14:37
















0












$begingroup$


i am having a problem with the following problem:



a guy loves his girlfriend, so he buys her each day a new bag of colored candies. there's no dependancy between bags of candy in different days.



a)what is the mean of number of candy bags he'll buy, if in each bag there are exactly two candies, and each candy can be in one of three colors: red, green and blue, with the probability of red:1/8, green:1/4, blue: 5/8, and the guy will keep buying candy bags until she gets at least 2 green candies?



b)what is the mean of the number of colors of candy that his girlfriend will have, if he buys exactly 10 bags, and in each bag there's only one candy, in one of 6 colors, in same probability?



here's what i tried, even though i don't know exactly how to continue:



a)let X be the number of candy bags he'll buy until there are at least 2 green candies. $X_1+X_2=X$, where $X_1$ will be the number of bags he bought and there's one green candy, and $X_2$ the amount of bags he'll have to buy until obtaining 2 green candies. so $E(X) = E(x_1) + E(x_2)$, and for $x_1$ he needs to keep buying bags until the first success, so it's a geometric distribution, so it's $x_1 ~ geo(1-0.25=0.75)$. then the mean is $E(x_1) = 1/p = frac{4}{3}$. next it's the second part of the experiment, where he continues buying until he gets the second one is the same, we need to continue until we get the second one so $x_4 ~ geo(1-1/4=3/4)$. from here i don't know how to continue or if what i did is correct.



b) for each of the 6 possible colors, $X_i$ is defined to be 1 if the colors i was obtained once, or 0 otherwise. thus, $X=sum_{i=1}^6X_i$ is the number of 6 colored candies in 10 bags. so i need to find $p(x_i=1)=1-p(x_i=0)=1-frac{5}{6}^{10}=0.8385$ so $E[x]=E[sum_{i=1}^6x_i]=sum_{i=1}^6E[x_i]=6*0.8385$. is this correct?



hoping that what i did so far is correct, would appreciate learning what i did wrong and how to improve. thank you very much for your help!










share|cite|improve this question









$endgroup$












  • $begingroup$
    You are correct on (b). For (a), you might take a look at the negative binomial distribution. en.wikipedia.org/wiki/Negative_binomial_distribution
    $endgroup$
    – awkward
    Feb 7 at 14:37














0












0








0





$begingroup$


i am having a problem with the following problem:



a guy loves his girlfriend, so he buys her each day a new bag of colored candies. there's no dependancy between bags of candy in different days.



a)what is the mean of number of candy bags he'll buy, if in each bag there are exactly two candies, and each candy can be in one of three colors: red, green and blue, with the probability of red:1/8, green:1/4, blue: 5/8, and the guy will keep buying candy bags until she gets at least 2 green candies?



b)what is the mean of the number of colors of candy that his girlfriend will have, if he buys exactly 10 bags, and in each bag there's only one candy, in one of 6 colors, in same probability?



here's what i tried, even though i don't know exactly how to continue:



a)let X be the number of candy bags he'll buy until there are at least 2 green candies. $X_1+X_2=X$, where $X_1$ will be the number of bags he bought and there's one green candy, and $X_2$ the amount of bags he'll have to buy until obtaining 2 green candies. so $E(X) = E(x_1) + E(x_2)$, and for $x_1$ he needs to keep buying bags until the first success, so it's a geometric distribution, so it's $x_1 ~ geo(1-0.25=0.75)$. then the mean is $E(x_1) = 1/p = frac{4}{3}$. next it's the second part of the experiment, where he continues buying until he gets the second one is the same, we need to continue until we get the second one so $x_4 ~ geo(1-1/4=3/4)$. from here i don't know how to continue or if what i did is correct.



b) for each of the 6 possible colors, $X_i$ is defined to be 1 if the colors i was obtained once, or 0 otherwise. thus, $X=sum_{i=1}^6X_i$ is the number of 6 colored candies in 10 bags. so i need to find $p(x_i=1)=1-p(x_i=0)=1-frac{5}{6}^{10}=0.8385$ so $E[x]=E[sum_{i=1}^6x_i]=sum_{i=1}^6E[x_i]=6*0.8385$. is this correct?



hoping that what i did so far is correct, would appreciate learning what i did wrong and how to improve. thank you very much for your help!










share|cite|improve this question









$endgroup$




i am having a problem with the following problem:



a guy loves his girlfriend, so he buys her each day a new bag of colored candies. there's no dependancy between bags of candy in different days.



a)what is the mean of number of candy bags he'll buy, if in each bag there are exactly two candies, and each candy can be in one of three colors: red, green and blue, with the probability of red:1/8, green:1/4, blue: 5/8, and the guy will keep buying candy bags until she gets at least 2 green candies?



b)what is the mean of the number of colors of candy that his girlfriend will have, if he buys exactly 10 bags, and in each bag there's only one candy, in one of 6 colors, in same probability?



here's what i tried, even though i don't know exactly how to continue:



a)let X be the number of candy bags he'll buy until there are at least 2 green candies. $X_1+X_2=X$, where $X_1$ will be the number of bags he bought and there's one green candy, and $X_2$ the amount of bags he'll have to buy until obtaining 2 green candies. so $E(X) = E(x_1) + E(x_2)$, and for $x_1$ he needs to keep buying bags until the first success, so it's a geometric distribution, so it's $x_1 ~ geo(1-0.25=0.75)$. then the mean is $E(x_1) = 1/p = frac{4}{3}$. next it's the second part of the experiment, where he continues buying until he gets the second one is the same, we need to continue until we get the second one so $x_4 ~ geo(1-1/4=3/4)$. from here i don't know how to continue or if what i did is correct.



b) for each of the 6 possible colors, $X_i$ is defined to be 1 if the colors i was obtained once, or 0 otherwise. thus, $X=sum_{i=1}^6X_i$ is the number of 6 colored candies in 10 bags. so i need to find $p(x_i=1)=1-p(x_i=0)=1-frac{5}{6}^{10}=0.8385$ so $E[x]=E[sum_{i=1}^6x_i]=sum_{i=1}^6E[x_i]=6*0.8385$. is this correct?



hoping that what i did so far is correct, would appreciate learning what i did wrong and how to improve. thank you very much for your help!







probability probability-distributions problem-solving






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 29 at 19:30









q123q123

75




75












  • $begingroup$
    You are correct on (b). For (a), you might take a look at the negative binomial distribution. en.wikipedia.org/wiki/Negative_binomial_distribution
    $endgroup$
    – awkward
    Feb 7 at 14:37


















  • $begingroup$
    You are correct on (b). For (a), you might take a look at the negative binomial distribution. en.wikipedia.org/wiki/Negative_binomial_distribution
    $endgroup$
    – awkward
    Feb 7 at 14:37
















$begingroup$
You are correct on (b). For (a), you might take a look at the negative binomial distribution. en.wikipedia.org/wiki/Negative_binomial_distribution
$endgroup$
– awkward
Feb 7 at 14:37




$begingroup$
You are correct on (b). For (a), you might take a look at the negative binomial distribution. en.wikipedia.org/wiki/Negative_binomial_distribution
$endgroup$
– awkward
Feb 7 at 14:37










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%2f3092618%2fmean-of-buying-different-colored-candytricky%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%2f3092618%2fmean-of-buying-different-colored-candytricky%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

MongoDB - Not Authorized To Execute Command

Npm cannot find a required file even through it is in the searched directory

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith