Olivia's cookie jars











up vote
13
down vote

favorite












Olivia loves cookies so much that Dad promises to buy her two cookie jars on one condition: that she only eats one cookie per day.



Olivia agrees, and now two black, large cookie jars rest on the kitchen table. The jars are completely opaque, but on the label it says very clearly: each jar contains exactly 100 cookies.



So every morning Olivia wakes up, randomly selects one of the cookie jars, opens it and takes one cookie. Yum. Nobody else in the house eats cookies, so she's in for a long time treat.



After some time though, the inevitable happens: when Olivia opens the randomly selected jar that morning, she finds that the jar is empty. Quickly she glances worried to the other jar and the question pops into her mind:



What is the probability that the other jar is also empty?



EDIT: For clarification, Olivia does not realise that a jar is empty when taking the last cookie from it.










share|improve this question
























  • I believe the answer will be around rot13(svir cbvag gjb bar frira creprag) but I'm having trouble proving it
    – SteveV
    yesterday










  • This is the restatement of Banach matchbox problem, en.wikipedia.org/wiki/Banach%27s_matchbox_problem
    – Roah
    yesterday















up vote
13
down vote

favorite












Olivia loves cookies so much that Dad promises to buy her two cookie jars on one condition: that she only eats one cookie per day.



Olivia agrees, and now two black, large cookie jars rest on the kitchen table. The jars are completely opaque, but on the label it says very clearly: each jar contains exactly 100 cookies.



So every morning Olivia wakes up, randomly selects one of the cookie jars, opens it and takes one cookie. Yum. Nobody else in the house eats cookies, so she's in for a long time treat.



After some time though, the inevitable happens: when Olivia opens the randomly selected jar that morning, she finds that the jar is empty. Quickly she glances worried to the other jar and the question pops into her mind:



What is the probability that the other jar is also empty?



EDIT: For clarification, Olivia does not realise that a jar is empty when taking the last cookie from it.










share|improve this question
























  • I believe the answer will be around rot13(svir cbvag gjb bar frira creprag) but I'm having trouble proving it
    – SteveV
    yesterday










  • This is the restatement of Banach matchbox problem, en.wikipedia.org/wiki/Banach%27s_matchbox_problem
    – Roah
    yesterday













up vote
13
down vote

favorite









up vote
13
down vote

favorite











Olivia loves cookies so much that Dad promises to buy her two cookie jars on one condition: that she only eats one cookie per day.



Olivia agrees, and now two black, large cookie jars rest on the kitchen table. The jars are completely opaque, but on the label it says very clearly: each jar contains exactly 100 cookies.



So every morning Olivia wakes up, randomly selects one of the cookie jars, opens it and takes one cookie. Yum. Nobody else in the house eats cookies, so she's in for a long time treat.



After some time though, the inevitable happens: when Olivia opens the randomly selected jar that morning, she finds that the jar is empty. Quickly she glances worried to the other jar and the question pops into her mind:



What is the probability that the other jar is also empty?



EDIT: For clarification, Olivia does not realise that a jar is empty when taking the last cookie from it.










share|improve this question















Olivia loves cookies so much that Dad promises to buy her two cookie jars on one condition: that she only eats one cookie per day.



Olivia agrees, and now two black, large cookie jars rest on the kitchen table. The jars are completely opaque, but on the label it says very clearly: each jar contains exactly 100 cookies.



So every morning Olivia wakes up, randomly selects one of the cookie jars, opens it and takes one cookie. Yum. Nobody else in the house eats cookies, so she's in for a long time treat.



After some time though, the inevitable happens: when Olivia opens the randomly selected jar that morning, she finds that the jar is empty. Quickly she glances worried to the other jar and the question pops into her mind:



What is the probability that the other jar is also empty?



EDIT: For clarification, Olivia does not realise that a jar is empty when taking the last cookie from it.







probability






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday

























asked yesterday









Bogdan Alexandru

289115




289115












  • I believe the answer will be around rot13(svir cbvag gjb bar frira creprag) but I'm having trouble proving it
    – SteveV
    yesterday










  • This is the restatement of Banach matchbox problem, en.wikipedia.org/wiki/Banach%27s_matchbox_problem
    – Roah
    yesterday


















  • I believe the answer will be around rot13(svir cbvag gjb bar frira creprag) but I'm having trouble proving it
    – SteveV
    yesterday










  • This is the restatement of Banach matchbox problem, en.wikipedia.org/wiki/Banach%27s_matchbox_problem
    – Roah
    yesterday
















I believe the answer will be around rot13(svir cbvag gjb bar frira creprag) but I'm having trouble proving it
– SteveV
yesterday




I believe the answer will be around rot13(svir cbvag gjb bar frira creprag) but I'm having trouble proving it
– SteveV
yesterday












This is the restatement of Banach matchbox problem, en.wikipedia.org/wiki/Banach%27s_matchbox_problem
– Roah
yesterday




This is the restatement of Banach matchbox problem, en.wikipedia.org/wiki/Banach%27s_matchbox_problem
– Roah
yesterday










5 Answers
5






active

oldest

votes

















up vote
11
down vote



accepted










There is a




5.63%




chance that the other jar is empty. This puzzle is asking the equivalent of




What is the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times?




which can be calculated by




$0.5^{100}times(1-0.5)^{(200-100)}timesbinom{200}{100} = 0.0563 =$ 5.63%







share|improve this answer








New contributor




SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • This should be it. I left out the fact that it doesnt matter which jar Olivia chooses at the 201th pick.
    – Kryesec
    yesterday










  • Hi and welcome to Puzzling.SE! Nice answer. However when I run simulations, it comes out a different answer, so I wonder if they are exactly equivalent.
    – SteveV
    yesterday






  • 4




    @Kryesec I think the discrepancy comes from the fact that you are assuming that there are always 200 attempts. But this is not true. There could be fewer attempts if there is a failure and these have to be removed from the probability you calculated
    – SteveV
    yesterday










  • @SteveV: When I run a simulation it does give me this answer.
    – Jaap Scherphuis
    22 hours ago


















up vote
4
down vote













Is it




zero




because this is the first time she's found a jar to be empty, so




the other jar has never been empty







share|improve this answer





















  • hello! This was my first thought too for a straightforward answer. But I was thinking that the discovery that it is empty is actually on the 101th reach into the jar. Nevertheless, this is the most logical solution in normal situation (:
    – Kryesec
    yesterday








  • 1




    Hm. This is probably close, but rot13(vfa'g gurer n fznyy punapr gung fur'f ba qnl gjb uhaqerq, jura obgu wnef ner rzcgl naq fur unf nyjnlf pubfra n aba-rzcgl bar orsber)?
    – M Oehm
    yesterday






  • 1




    @Kryesec: Not necessarily. That discovery could be on any day between 101 and 200.
    – M Oehm
    yesterday






  • 1




    @MOehm agreed, but I was referring to the 101th reach into the jar in question (meaning that Olivia doesnt know that she is emptying the jar when she takes the last cookie)
    – Kryesec
    yesterday






  • 1




    Oh, I see, the 101st time she reaches into that particular jar. I mistook "reach into the jar" for "reach into a jar".
    – M Oehm
    yesterday




















up vote
2
down vote













The probability is




(Edit: kudos to @SHaze for noting the prior mistake I had on 201th run) 5.63%




Some basic assumptions:




1. Assuming that this is the first occurrence which is discovered that the jar is empty (Noting that this is the 101th time Olivia reach into the jar, discovered that there is 0 cookies inside)

2. This is a simple scenario of comparing 2 binomial distributions:




i.e. A - Number of times Olivia select Jar A ; &

B - Number of times Olivia select Jar B




Therefore:




This problem is a
$P(A=101 OR B=101|B=100) =(0.5+0.5) * binom{200}{100}0.5^{100}(1-0.5)^{200-100} $ = 5.63%







share|improve this answer























  • All I can say right now is that the answer is wrong...
    – Bogdan Alexandru
    yesterday










  • @BogdanAlexandru looks like back to the drawing board it is .__.
    – Kryesec
    yesterday










  • Better :) just a factor of two was missing.
    – Bogdan Alexandru
    21 hours ago


















up vote
1
down vote













The problem means that when she took 100 of one jar she must not take from this jar until she has also taken 100 from the other jar.



So the problem is equivalent to




ending in the middle bin of a Galton Board with 200 rows.
When you take 1 of one kind too much, you can't end in the middle bin of the last row anymore.




The probability therefor is:




$binom{n}{k}times p^{k} times (1-p)^{n-k}$ Source Wikipedia




In our case:




$binom{200}{100} times 0.5^{100} times (1-0.5)^{200-100}$




So the result is




$0.056348...$ or $5.63%$







share|improve this answer



















  • 1




    Hello, I've rendered your LaTeX properly and trimmed the decimal in the answer.
    – Quintec
    yesterday










  • @Quintec thanks, looks good now
    – H. Idden
    yesterday


















up vote
-1
down vote













I think the probability that the second jar is also empty is:




50%




Because:




Some other answers liken this problem to "the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times", and that might be the case if the question were "What are the chances of Olivia taking exactly 100 cookies from each jar over 200 days". But that isn't the question - the question is entirely about one of the cookie jars after we know the other is already empty.


Olivia has been "randomly" selecting a cookie jar each morning. If it were truly random, say for example she did toss a coin to decide which one to pick, then each day, the probability of Jar A or Jar B being selected would be 50% on any given day. Sure, the probability of the coin toss landing the same every day over a given period of time would be calculable, but on any individual day the probability in isolation is 50%. Olivia's own method of selection is probably far less random. If she made a "conscious" random selection she may have been very close to precise alternation between the two cookie jars and the number of remaining cookies in the other jar would probably be quite close to 1 or 0; whereas if it was entirely without thought she will almost certainly have subconsciously favoured one of the jars. In the latter case, her 'favoured' jar would be empty first and the other almost certainly contains some cookies, but I do not believe that number would be calculable.


One jar is now confirmed as empty. The question is, does the other jar have any cookies in, or not? It may have none - or any other number of cookies. It's 50-50.


I haven't approached this as a mathematics problem. Humans have been shown to randomly select numbers evenly across a range. With a choice of only two jars, the odds would be on Olivia alternating between them fairly evenly.







share|improve this answer























  • I'm either going to win the lottery or not. So that's a 50-50 chance.
    – Kruga
    20 hours ago










  • @Kruga Not the same, because millions of other people are playing too AND you have to win on a sequence of numbers. If the lottery involved you and two numbers, yes it would be.
    – Astralbee
    20 hours ago










  • It just sounds like that's the kind logic you are using.
    – Kruga
    19 hours ago










  • @Kruga Then I would have to say that you haven't read and understood my first paragraph correctly. I haven't used the logic for calculating a sequence of events because that is not the question. Why not make an answer yourself using the logic you believe to be correct?
    – Astralbee
    19 hours ago










  • @astralbee But with your example there is the possibility that there is none, or there is some. But there could be 1 cookie left, 2 cookies left... until 100 cookies left. this all have the exact same probability as there being 0 cookies left.
    – a guy
    13 hours ago











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: "559"
};
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',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2fpuzzling.stackexchange.com%2fquestions%2f75968%2folivias-cookie-jars%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























5 Answers
5






active

oldest

votes








5 Answers
5






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
11
down vote



accepted










There is a




5.63%




chance that the other jar is empty. This puzzle is asking the equivalent of




What is the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times?




which can be calculated by




$0.5^{100}times(1-0.5)^{(200-100)}timesbinom{200}{100} = 0.0563 =$ 5.63%







share|improve this answer








New contributor




SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • This should be it. I left out the fact that it doesnt matter which jar Olivia chooses at the 201th pick.
    – Kryesec
    yesterday










  • Hi and welcome to Puzzling.SE! Nice answer. However when I run simulations, it comes out a different answer, so I wonder if they are exactly equivalent.
    – SteveV
    yesterday






  • 4




    @Kryesec I think the discrepancy comes from the fact that you are assuming that there are always 200 attempts. But this is not true. There could be fewer attempts if there is a failure and these have to be removed from the probability you calculated
    – SteveV
    yesterday










  • @SteveV: When I run a simulation it does give me this answer.
    – Jaap Scherphuis
    22 hours ago















up vote
11
down vote



accepted










There is a




5.63%




chance that the other jar is empty. This puzzle is asking the equivalent of




What is the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times?




which can be calculated by




$0.5^{100}times(1-0.5)^{(200-100)}timesbinom{200}{100} = 0.0563 =$ 5.63%







share|improve this answer








New contributor




SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















  • This should be it. I left out the fact that it doesnt matter which jar Olivia chooses at the 201th pick.
    – Kryesec
    yesterday










  • Hi and welcome to Puzzling.SE! Nice answer. However when I run simulations, it comes out a different answer, so I wonder if they are exactly equivalent.
    – SteveV
    yesterday






  • 4




    @Kryesec I think the discrepancy comes from the fact that you are assuming that there are always 200 attempts. But this is not true. There could be fewer attempts if there is a failure and these have to be removed from the probability you calculated
    – SteveV
    yesterday










  • @SteveV: When I run a simulation it does give me this answer.
    – Jaap Scherphuis
    22 hours ago













up vote
11
down vote



accepted







up vote
11
down vote



accepted






There is a




5.63%




chance that the other jar is empty. This puzzle is asking the equivalent of




What is the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times?




which can be calculated by




$0.5^{100}times(1-0.5)^{(200-100)}timesbinom{200}{100} = 0.0563 =$ 5.63%







share|improve this answer








New contributor




SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









There is a




5.63%




chance that the other jar is empty. This puzzle is asking the equivalent of




What is the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times?




which can be calculated by




$0.5^{100}times(1-0.5)^{(200-100)}timesbinom{200}{100} = 0.0563 =$ 5.63%








share|improve this answer








New contributor




SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered yesterday









SHaze

1263




1263




New contributor




SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






SHaze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • This should be it. I left out the fact that it doesnt matter which jar Olivia chooses at the 201th pick.
    – Kryesec
    yesterday










  • Hi and welcome to Puzzling.SE! Nice answer. However when I run simulations, it comes out a different answer, so I wonder if they are exactly equivalent.
    – SteveV
    yesterday






  • 4




    @Kryesec I think the discrepancy comes from the fact that you are assuming that there are always 200 attempts. But this is not true. There could be fewer attempts if there is a failure and these have to be removed from the probability you calculated
    – SteveV
    yesterday










  • @SteveV: When I run a simulation it does give me this answer.
    – Jaap Scherphuis
    22 hours ago


















  • This should be it. I left out the fact that it doesnt matter which jar Olivia chooses at the 201th pick.
    – Kryesec
    yesterday










  • Hi and welcome to Puzzling.SE! Nice answer. However when I run simulations, it comes out a different answer, so I wonder if they are exactly equivalent.
    – SteveV
    yesterday






  • 4




    @Kryesec I think the discrepancy comes from the fact that you are assuming that there are always 200 attempts. But this is not true. There could be fewer attempts if there is a failure and these have to be removed from the probability you calculated
    – SteveV
    yesterday










  • @SteveV: When I run a simulation it does give me this answer.
    – Jaap Scherphuis
    22 hours ago
















This should be it. I left out the fact that it doesnt matter which jar Olivia chooses at the 201th pick.
– Kryesec
yesterday




This should be it. I left out the fact that it doesnt matter which jar Olivia chooses at the 201th pick.
– Kryesec
yesterday












Hi and welcome to Puzzling.SE! Nice answer. However when I run simulations, it comes out a different answer, so I wonder if they are exactly equivalent.
– SteveV
yesterday




Hi and welcome to Puzzling.SE! Nice answer. However when I run simulations, it comes out a different answer, so I wonder if they are exactly equivalent.
– SteveV
yesterday




4




4




@Kryesec I think the discrepancy comes from the fact that you are assuming that there are always 200 attempts. But this is not true. There could be fewer attempts if there is a failure and these have to be removed from the probability you calculated
– SteveV
yesterday




@Kryesec I think the discrepancy comes from the fact that you are assuming that there are always 200 attempts. But this is not true. There could be fewer attempts if there is a failure and these have to be removed from the probability you calculated
– SteveV
yesterday












@SteveV: When I run a simulation it does give me this answer.
– Jaap Scherphuis
22 hours ago




@SteveV: When I run a simulation it does give me this answer.
– Jaap Scherphuis
22 hours ago










up vote
4
down vote













Is it




zero




because this is the first time she's found a jar to be empty, so




the other jar has never been empty







share|improve this answer





















  • hello! This was my first thought too for a straightforward answer. But I was thinking that the discovery that it is empty is actually on the 101th reach into the jar. Nevertheless, this is the most logical solution in normal situation (:
    – Kryesec
    yesterday








  • 1




    Hm. This is probably close, but rot13(vfa'g gurer n fznyy punapr gung fur'f ba qnl gjb uhaqerq, jura obgu wnef ner rzcgl naq fur unf nyjnlf pubfra n aba-rzcgl bar orsber)?
    – M Oehm
    yesterday






  • 1




    @Kryesec: Not necessarily. That discovery could be on any day between 101 and 200.
    – M Oehm
    yesterday






  • 1




    @MOehm agreed, but I was referring to the 101th reach into the jar in question (meaning that Olivia doesnt know that she is emptying the jar when she takes the last cookie)
    – Kryesec
    yesterday






  • 1




    Oh, I see, the 101st time she reaches into that particular jar. I mistook "reach into the jar" for "reach into a jar".
    – M Oehm
    yesterday

















up vote
4
down vote













Is it




zero




because this is the first time she's found a jar to be empty, so




the other jar has never been empty







share|improve this answer





















  • hello! This was my first thought too for a straightforward answer. But I was thinking that the discovery that it is empty is actually on the 101th reach into the jar. Nevertheless, this is the most logical solution in normal situation (:
    – Kryesec
    yesterday








  • 1




    Hm. This is probably close, but rot13(vfa'g gurer n fznyy punapr gung fur'f ba qnl gjb uhaqerq, jura obgu wnef ner rzcgl naq fur unf nyjnlf pubfra n aba-rzcgl bar orsber)?
    – M Oehm
    yesterday






  • 1




    @Kryesec: Not necessarily. That discovery could be on any day between 101 and 200.
    – M Oehm
    yesterday






  • 1




    @MOehm agreed, but I was referring to the 101th reach into the jar in question (meaning that Olivia doesnt know that she is emptying the jar when she takes the last cookie)
    – Kryesec
    yesterday






  • 1




    Oh, I see, the 101st time she reaches into that particular jar. I mistook "reach into the jar" for "reach into a jar".
    – M Oehm
    yesterday















up vote
4
down vote










up vote
4
down vote









Is it




zero




because this is the first time she's found a jar to be empty, so




the other jar has never been empty







share|improve this answer












Is it




zero




because this is the first time she's found a jar to be empty, so




the other jar has never been empty








share|improve this answer












share|improve this answer



share|improve this answer










answered yesterday









Rosie F

5,6482943




5,6482943












  • hello! This was my first thought too for a straightforward answer. But I was thinking that the discovery that it is empty is actually on the 101th reach into the jar. Nevertheless, this is the most logical solution in normal situation (:
    – Kryesec
    yesterday








  • 1




    Hm. This is probably close, but rot13(vfa'g gurer n fznyy punapr gung fur'f ba qnl gjb uhaqerq, jura obgu wnef ner rzcgl naq fur unf nyjnlf pubfra n aba-rzcgl bar orsber)?
    – M Oehm
    yesterday






  • 1




    @Kryesec: Not necessarily. That discovery could be on any day between 101 and 200.
    – M Oehm
    yesterday






  • 1




    @MOehm agreed, but I was referring to the 101th reach into the jar in question (meaning that Olivia doesnt know that she is emptying the jar when she takes the last cookie)
    – Kryesec
    yesterday






  • 1




    Oh, I see, the 101st time she reaches into that particular jar. I mistook "reach into the jar" for "reach into a jar".
    – M Oehm
    yesterday




















  • hello! This was my first thought too for a straightforward answer. But I was thinking that the discovery that it is empty is actually on the 101th reach into the jar. Nevertheless, this is the most logical solution in normal situation (:
    – Kryesec
    yesterday








  • 1




    Hm. This is probably close, but rot13(vfa'g gurer n fznyy punapr gung fur'f ba qnl gjb uhaqerq, jura obgu wnef ner rzcgl naq fur unf nyjnlf pubfra n aba-rzcgl bar orsber)?
    – M Oehm
    yesterday






  • 1




    @Kryesec: Not necessarily. That discovery could be on any day between 101 and 200.
    – M Oehm
    yesterday






  • 1




    @MOehm agreed, but I was referring to the 101th reach into the jar in question (meaning that Olivia doesnt know that she is emptying the jar when she takes the last cookie)
    – Kryesec
    yesterday






  • 1




    Oh, I see, the 101st time she reaches into that particular jar. I mistook "reach into the jar" for "reach into a jar".
    – M Oehm
    yesterday


















hello! This was my first thought too for a straightforward answer. But I was thinking that the discovery that it is empty is actually on the 101th reach into the jar. Nevertheless, this is the most logical solution in normal situation (:
– Kryesec
yesterday






hello! This was my first thought too for a straightforward answer. But I was thinking that the discovery that it is empty is actually on the 101th reach into the jar. Nevertheless, this is the most logical solution in normal situation (:
– Kryesec
yesterday






1




1




Hm. This is probably close, but rot13(vfa'g gurer n fznyy punapr gung fur'f ba qnl gjb uhaqerq, jura obgu wnef ner rzcgl naq fur unf nyjnlf pubfra n aba-rzcgl bar orsber)?
– M Oehm
yesterday




Hm. This is probably close, but rot13(vfa'g gurer n fznyy punapr gung fur'f ba qnl gjb uhaqerq, jura obgu wnef ner rzcgl naq fur unf nyjnlf pubfra n aba-rzcgl bar orsber)?
– M Oehm
yesterday




1




1




@Kryesec: Not necessarily. That discovery could be on any day between 101 and 200.
– M Oehm
yesterday




@Kryesec: Not necessarily. That discovery could be on any day between 101 and 200.
– M Oehm
yesterday




1




1




@MOehm agreed, but I was referring to the 101th reach into the jar in question (meaning that Olivia doesnt know that she is emptying the jar when she takes the last cookie)
– Kryesec
yesterday




@MOehm agreed, but I was referring to the 101th reach into the jar in question (meaning that Olivia doesnt know that she is emptying the jar when she takes the last cookie)
– Kryesec
yesterday




1




1




Oh, I see, the 101st time she reaches into that particular jar. I mistook "reach into the jar" for "reach into a jar".
– M Oehm
yesterday






Oh, I see, the 101st time she reaches into that particular jar. I mistook "reach into the jar" for "reach into a jar".
– M Oehm
yesterday












up vote
2
down vote













The probability is




(Edit: kudos to @SHaze for noting the prior mistake I had on 201th run) 5.63%




Some basic assumptions:




1. Assuming that this is the first occurrence which is discovered that the jar is empty (Noting that this is the 101th time Olivia reach into the jar, discovered that there is 0 cookies inside)

2. This is a simple scenario of comparing 2 binomial distributions:




i.e. A - Number of times Olivia select Jar A ; &

B - Number of times Olivia select Jar B




Therefore:




This problem is a
$P(A=101 OR B=101|B=100) =(0.5+0.5) * binom{200}{100}0.5^{100}(1-0.5)^{200-100} $ = 5.63%







share|improve this answer























  • All I can say right now is that the answer is wrong...
    – Bogdan Alexandru
    yesterday










  • @BogdanAlexandru looks like back to the drawing board it is .__.
    – Kryesec
    yesterday










  • Better :) just a factor of two was missing.
    – Bogdan Alexandru
    21 hours ago















up vote
2
down vote













The probability is




(Edit: kudos to @SHaze for noting the prior mistake I had on 201th run) 5.63%




Some basic assumptions:




1. Assuming that this is the first occurrence which is discovered that the jar is empty (Noting that this is the 101th time Olivia reach into the jar, discovered that there is 0 cookies inside)

2. This is a simple scenario of comparing 2 binomial distributions:




i.e. A - Number of times Olivia select Jar A ; &

B - Number of times Olivia select Jar B




Therefore:




This problem is a
$P(A=101 OR B=101|B=100) =(0.5+0.5) * binom{200}{100}0.5^{100}(1-0.5)^{200-100} $ = 5.63%







share|improve this answer























  • All I can say right now is that the answer is wrong...
    – Bogdan Alexandru
    yesterday










  • @BogdanAlexandru looks like back to the drawing board it is .__.
    – Kryesec
    yesterday










  • Better :) just a factor of two was missing.
    – Bogdan Alexandru
    21 hours ago













up vote
2
down vote










up vote
2
down vote









The probability is




(Edit: kudos to @SHaze for noting the prior mistake I had on 201th run) 5.63%




Some basic assumptions:




1. Assuming that this is the first occurrence which is discovered that the jar is empty (Noting that this is the 101th time Olivia reach into the jar, discovered that there is 0 cookies inside)

2. This is a simple scenario of comparing 2 binomial distributions:




i.e. A - Number of times Olivia select Jar A ; &

B - Number of times Olivia select Jar B




Therefore:




This problem is a
$P(A=101 OR B=101|B=100) =(0.5+0.5) * binom{200}{100}0.5^{100}(1-0.5)^{200-100} $ = 5.63%







share|improve this answer














The probability is




(Edit: kudos to @SHaze for noting the prior mistake I had on 201th run) 5.63%




Some basic assumptions:




1. Assuming that this is the first occurrence which is discovered that the jar is empty (Noting that this is the 101th time Olivia reach into the jar, discovered that there is 0 cookies inside)

2. This is a simple scenario of comparing 2 binomial distributions:




i.e. A - Number of times Olivia select Jar A ; &

B - Number of times Olivia select Jar B




Therefore:




This problem is a
$P(A=101 OR B=101|B=100) =(0.5+0.5) * binom{200}{100}0.5^{100}(1-0.5)^{200-100} $ = 5.63%








share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday

























answered yesterday









Kryesec

66410




66410












  • All I can say right now is that the answer is wrong...
    – Bogdan Alexandru
    yesterday










  • @BogdanAlexandru looks like back to the drawing board it is .__.
    – Kryesec
    yesterday










  • Better :) just a factor of two was missing.
    – Bogdan Alexandru
    21 hours ago


















  • All I can say right now is that the answer is wrong...
    – Bogdan Alexandru
    yesterday










  • @BogdanAlexandru looks like back to the drawing board it is .__.
    – Kryesec
    yesterday










  • Better :) just a factor of two was missing.
    – Bogdan Alexandru
    21 hours ago
















All I can say right now is that the answer is wrong...
– Bogdan Alexandru
yesterday




All I can say right now is that the answer is wrong...
– Bogdan Alexandru
yesterday












@BogdanAlexandru looks like back to the drawing board it is .__.
– Kryesec
yesterday




@BogdanAlexandru looks like back to the drawing board it is .__.
– Kryesec
yesterday












Better :) just a factor of two was missing.
– Bogdan Alexandru
21 hours ago




Better :) just a factor of two was missing.
– Bogdan Alexandru
21 hours ago










up vote
1
down vote













The problem means that when she took 100 of one jar she must not take from this jar until she has also taken 100 from the other jar.



So the problem is equivalent to




ending in the middle bin of a Galton Board with 200 rows.
When you take 1 of one kind too much, you can't end in the middle bin of the last row anymore.




The probability therefor is:




$binom{n}{k}times p^{k} times (1-p)^{n-k}$ Source Wikipedia




In our case:




$binom{200}{100} times 0.5^{100} times (1-0.5)^{200-100}$




So the result is




$0.056348...$ or $5.63%$







share|improve this answer



















  • 1




    Hello, I've rendered your LaTeX properly and trimmed the decimal in the answer.
    – Quintec
    yesterday










  • @Quintec thanks, looks good now
    – H. Idden
    yesterday















up vote
1
down vote













The problem means that when she took 100 of one jar she must not take from this jar until she has also taken 100 from the other jar.



So the problem is equivalent to




ending in the middle bin of a Galton Board with 200 rows.
When you take 1 of one kind too much, you can't end in the middle bin of the last row anymore.




The probability therefor is:




$binom{n}{k}times p^{k} times (1-p)^{n-k}$ Source Wikipedia




In our case:




$binom{200}{100} times 0.5^{100} times (1-0.5)^{200-100}$




So the result is




$0.056348...$ or $5.63%$







share|improve this answer



















  • 1




    Hello, I've rendered your LaTeX properly and trimmed the decimal in the answer.
    – Quintec
    yesterday










  • @Quintec thanks, looks good now
    – H. Idden
    yesterday













up vote
1
down vote










up vote
1
down vote









The problem means that when she took 100 of one jar she must not take from this jar until she has also taken 100 from the other jar.



So the problem is equivalent to




ending in the middle bin of a Galton Board with 200 rows.
When you take 1 of one kind too much, you can't end in the middle bin of the last row anymore.




The probability therefor is:




$binom{n}{k}times p^{k} times (1-p)^{n-k}$ Source Wikipedia




In our case:




$binom{200}{100} times 0.5^{100} times (1-0.5)^{200-100}$




So the result is




$0.056348...$ or $5.63%$







share|improve this answer














The problem means that when she took 100 of one jar she must not take from this jar until she has also taken 100 from the other jar.



So the problem is equivalent to




ending in the middle bin of a Galton Board with 200 rows.
When you take 1 of one kind too much, you can't end in the middle bin of the last row anymore.




The probability therefor is:




$binom{n}{k}times p^{k} times (1-p)^{n-k}$ Source Wikipedia




In our case:




$binom{200}{100} times 0.5^{100} times (1-0.5)^{200-100}$




So the result is




$0.056348...$ or $5.63%$








share|improve this answer














share|improve this answer



share|improve this answer








edited yesterday









Quintec

5,1311742




5,1311742










answered yesterday









H. Idden

1365




1365








  • 1




    Hello, I've rendered your LaTeX properly and trimmed the decimal in the answer.
    – Quintec
    yesterday










  • @Quintec thanks, looks good now
    – H. Idden
    yesterday














  • 1




    Hello, I've rendered your LaTeX properly and trimmed the decimal in the answer.
    – Quintec
    yesterday










  • @Quintec thanks, looks good now
    – H. Idden
    yesterday








1




1




Hello, I've rendered your LaTeX properly and trimmed the decimal in the answer.
– Quintec
yesterday




Hello, I've rendered your LaTeX properly and trimmed the decimal in the answer.
– Quintec
yesterday












@Quintec thanks, looks good now
– H. Idden
yesterday




@Quintec thanks, looks good now
– H. Idden
yesterday










up vote
-1
down vote













I think the probability that the second jar is also empty is:




50%




Because:




Some other answers liken this problem to "the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times", and that might be the case if the question were "What are the chances of Olivia taking exactly 100 cookies from each jar over 200 days". But that isn't the question - the question is entirely about one of the cookie jars after we know the other is already empty.


Olivia has been "randomly" selecting a cookie jar each morning. If it were truly random, say for example she did toss a coin to decide which one to pick, then each day, the probability of Jar A or Jar B being selected would be 50% on any given day. Sure, the probability of the coin toss landing the same every day over a given period of time would be calculable, but on any individual day the probability in isolation is 50%. Olivia's own method of selection is probably far less random. If she made a "conscious" random selection she may have been very close to precise alternation between the two cookie jars and the number of remaining cookies in the other jar would probably be quite close to 1 or 0; whereas if it was entirely without thought she will almost certainly have subconsciously favoured one of the jars. In the latter case, her 'favoured' jar would be empty first and the other almost certainly contains some cookies, but I do not believe that number would be calculable.


One jar is now confirmed as empty. The question is, does the other jar have any cookies in, or not? It may have none - or any other number of cookies. It's 50-50.


I haven't approached this as a mathematics problem. Humans have been shown to randomly select numbers evenly across a range. With a choice of only two jars, the odds would be on Olivia alternating between them fairly evenly.







share|improve this answer























  • I'm either going to win the lottery or not. So that's a 50-50 chance.
    – Kruga
    20 hours ago










  • @Kruga Not the same, because millions of other people are playing too AND you have to win on a sequence of numbers. If the lottery involved you and two numbers, yes it would be.
    – Astralbee
    20 hours ago










  • It just sounds like that's the kind logic you are using.
    – Kruga
    19 hours ago










  • @Kruga Then I would have to say that you haven't read and understood my first paragraph correctly. I haven't used the logic for calculating a sequence of events because that is not the question. Why not make an answer yourself using the logic you believe to be correct?
    – Astralbee
    19 hours ago










  • @astralbee But with your example there is the possibility that there is none, or there is some. But there could be 1 cookie left, 2 cookies left... until 100 cookies left. this all have the exact same probability as there being 0 cookies left.
    – a guy
    13 hours ago















up vote
-1
down vote













I think the probability that the second jar is also empty is:




50%




Because:




Some other answers liken this problem to "the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times", and that might be the case if the question were "What are the chances of Olivia taking exactly 100 cookies from each jar over 200 days". But that isn't the question - the question is entirely about one of the cookie jars after we know the other is already empty.


Olivia has been "randomly" selecting a cookie jar each morning. If it were truly random, say for example she did toss a coin to decide which one to pick, then each day, the probability of Jar A or Jar B being selected would be 50% on any given day. Sure, the probability of the coin toss landing the same every day over a given period of time would be calculable, but on any individual day the probability in isolation is 50%. Olivia's own method of selection is probably far less random. If she made a "conscious" random selection she may have been very close to precise alternation between the two cookie jars and the number of remaining cookies in the other jar would probably be quite close to 1 or 0; whereas if it was entirely without thought she will almost certainly have subconsciously favoured one of the jars. In the latter case, her 'favoured' jar would be empty first and the other almost certainly contains some cookies, but I do not believe that number would be calculable.


One jar is now confirmed as empty. The question is, does the other jar have any cookies in, or not? It may have none - or any other number of cookies. It's 50-50.


I haven't approached this as a mathematics problem. Humans have been shown to randomly select numbers evenly across a range. With a choice of only two jars, the odds would be on Olivia alternating between them fairly evenly.







share|improve this answer























  • I'm either going to win the lottery or not. So that's a 50-50 chance.
    – Kruga
    20 hours ago










  • @Kruga Not the same, because millions of other people are playing too AND you have to win on a sequence of numbers. If the lottery involved you and two numbers, yes it would be.
    – Astralbee
    20 hours ago










  • It just sounds like that's the kind logic you are using.
    – Kruga
    19 hours ago










  • @Kruga Then I would have to say that you haven't read and understood my first paragraph correctly. I haven't used the logic for calculating a sequence of events because that is not the question. Why not make an answer yourself using the logic you believe to be correct?
    – Astralbee
    19 hours ago










  • @astralbee But with your example there is the possibility that there is none, or there is some. But there could be 1 cookie left, 2 cookies left... until 100 cookies left. this all have the exact same probability as there being 0 cookies left.
    – a guy
    13 hours ago













up vote
-1
down vote










up vote
-1
down vote









I think the probability that the second jar is also empty is:




50%




Because:




Some other answers liken this problem to "the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times", and that might be the case if the question were "What are the chances of Olivia taking exactly 100 cookies from each jar over 200 days". But that isn't the question - the question is entirely about one of the cookie jars after we know the other is already empty.


Olivia has been "randomly" selecting a cookie jar each morning. If it were truly random, say for example she did toss a coin to decide which one to pick, then each day, the probability of Jar A or Jar B being selected would be 50% on any given day. Sure, the probability of the coin toss landing the same every day over a given period of time would be calculable, but on any individual day the probability in isolation is 50%. Olivia's own method of selection is probably far less random. If she made a "conscious" random selection she may have been very close to precise alternation between the two cookie jars and the number of remaining cookies in the other jar would probably be quite close to 1 or 0; whereas if it was entirely without thought she will almost certainly have subconsciously favoured one of the jars. In the latter case, her 'favoured' jar would be empty first and the other almost certainly contains some cookies, but I do not believe that number would be calculable.


One jar is now confirmed as empty. The question is, does the other jar have any cookies in, or not? It may have none - or any other number of cookies. It's 50-50.


I haven't approached this as a mathematics problem. Humans have been shown to randomly select numbers evenly across a range. With a choice of only two jars, the odds would be on Olivia alternating between them fairly evenly.







share|improve this answer














I think the probability that the second jar is also empty is:




50%




Because:




Some other answers liken this problem to "the probability of getting exactly 100 heads and 100 tails when flipping a fair coin 200 times", and that might be the case if the question were "What are the chances of Olivia taking exactly 100 cookies from each jar over 200 days". But that isn't the question - the question is entirely about one of the cookie jars after we know the other is already empty.


Olivia has been "randomly" selecting a cookie jar each morning. If it were truly random, say for example she did toss a coin to decide which one to pick, then each day, the probability of Jar A or Jar B being selected would be 50% on any given day. Sure, the probability of the coin toss landing the same every day over a given period of time would be calculable, but on any individual day the probability in isolation is 50%. Olivia's own method of selection is probably far less random. If she made a "conscious" random selection she may have been very close to precise alternation between the two cookie jars and the number of remaining cookies in the other jar would probably be quite close to 1 or 0; whereas if it was entirely without thought she will almost certainly have subconsciously favoured one of the jars. In the latter case, her 'favoured' jar would be empty first and the other almost certainly contains some cookies, but I do not believe that number would be calculable.


One jar is now confirmed as empty. The question is, does the other jar have any cookies in, or not? It may have none - or any other number of cookies. It's 50-50.


I haven't approached this as a mathematics problem. Humans have been shown to randomly select numbers evenly across a range. With a choice of only two jars, the odds would be on Olivia alternating between them fairly evenly.








share|improve this answer














share|improve this answer



share|improve this answer








edited 20 hours ago

























answered yesterday









Astralbee

5,7951846




5,7951846












  • I'm either going to win the lottery or not. So that's a 50-50 chance.
    – Kruga
    20 hours ago










  • @Kruga Not the same, because millions of other people are playing too AND you have to win on a sequence of numbers. If the lottery involved you and two numbers, yes it would be.
    – Astralbee
    20 hours ago










  • It just sounds like that's the kind logic you are using.
    – Kruga
    19 hours ago










  • @Kruga Then I would have to say that you haven't read and understood my first paragraph correctly. I haven't used the logic for calculating a sequence of events because that is not the question. Why not make an answer yourself using the logic you believe to be correct?
    – Astralbee
    19 hours ago










  • @astralbee But with your example there is the possibility that there is none, or there is some. But there could be 1 cookie left, 2 cookies left... until 100 cookies left. this all have the exact same probability as there being 0 cookies left.
    – a guy
    13 hours ago


















  • I'm either going to win the lottery or not. So that's a 50-50 chance.
    – Kruga
    20 hours ago










  • @Kruga Not the same, because millions of other people are playing too AND you have to win on a sequence of numbers. If the lottery involved you and two numbers, yes it would be.
    – Astralbee
    20 hours ago










  • It just sounds like that's the kind logic you are using.
    – Kruga
    19 hours ago










  • @Kruga Then I would have to say that you haven't read and understood my first paragraph correctly. I haven't used the logic for calculating a sequence of events because that is not the question. Why not make an answer yourself using the logic you believe to be correct?
    – Astralbee
    19 hours ago










  • @astralbee But with your example there is the possibility that there is none, or there is some. But there could be 1 cookie left, 2 cookies left... until 100 cookies left. this all have the exact same probability as there being 0 cookies left.
    – a guy
    13 hours ago
















I'm either going to win the lottery or not. So that's a 50-50 chance.
– Kruga
20 hours ago




I'm either going to win the lottery or not. So that's a 50-50 chance.
– Kruga
20 hours ago












@Kruga Not the same, because millions of other people are playing too AND you have to win on a sequence of numbers. If the lottery involved you and two numbers, yes it would be.
– Astralbee
20 hours ago




@Kruga Not the same, because millions of other people are playing too AND you have to win on a sequence of numbers. If the lottery involved you and two numbers, yes it would be.
– Astralbee
20 hours ago












It just sounds like that's the kind logic you are using.
– Kruga
19 hours ago




It just sounds like that's the kind logic you are using.
– Kruga
19 hours ago












@Kruga Then I would have to say that you haven't read and understood my first paragraph correctly. I haven't used the logic for calculating a sequence of events because that is not the question. Why not make an answer yourself using the logic you believe to be correct?
– Astralbee
19 hours ago




@Kruga Then I would have to say that you haven't read and understood my first paragraph correctly. I haven't used the logic for calculating a sequence of events because that is not the question. Why not make an answer yourself using the logic you believe to be correct?
– Astralbee
19 hours ago












@astralbee But with your example there is the possibility that there is none, or there is some. But there could be 1 cookie left, 2 cookies left... until 100 cookies left. this all have the exact same probability as there being 0 cookies left.
– a guy
13 hours ago




@astralbee But with your example there is the possibility that there is none, or there is some. But there could be 1 cookie left, 2 cookies left... until 100 cookies left. this all have the exact same probability as there being 0 cookies left.
– a guy
13 hours ago


















draft saved

draft discarded




















































Thanks for contributing an answer to Puzzling 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%2fpuzzling.stackexchange.com%2fquestions%2f75968%2folivias-cookie-jars%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei