Variation of Polya’s urn problem?











up vote
2
down vote

favorite
1












I was asked this question at an interview and was stumped by it. The problem is as follows:




Alice is playing an online game. She wins the first round and loses the second. The probability she then wins subsequent rounds is proportional to the number of wins. Calculate the probability that after 100 games, the number of wins and losses are equal.




I am unsure of how to proceed. At the interview, I was originally thinking of using a simple sum of



$$sum_i alpha w_i delta_i,$$



where $alpha$ is normalisation constant, $w_i$ is the number of wins at the $i$th game and $delta_i$ is either 0 or 1. However, I doubt this is a correct approach, and $w_i$ is dependent on the $delta$’s for $j<i$.



I was discussing with a mathematician friend who said that this is a possible variation of Polya’s urn, but I can’t see the connection. Could anyone help me with this visualisation and provide hints on how to move forward? Thank you!










share|cite|improve this question




















  • 1




    Saying the probability in subsequent rounds is proportional to the number of wins is not sufficient. It might be fixed at $0$. I think this is usually asked with the probability in each round being the fraction of wins up to that point, so for round $3$ she has $frac 12$ chance to win and if she wins in round $3$ she has $frac 23$ chance to win round $4$.
    – Ross Millikan
    Nov 18 at 19:55










  • @RossMillikan I see – could you talk a bit more about that? I’m curious!
    – user107224
    Nov 18 at 19:57










  • This is exactly the Polya urn model. en.wikipedia.org/wiki/P%C3%B3lya_urn_model See the 2nd paragraph. Then interpret a black ball as WIN and a white ball as LOSE. $Prob(WIN) = $ exactly the fraction of black balls = fraction of previous wins. Having said this, I don't know how to solve this model but I suspect some googling would reveal quite a lot of resources.
    – antkam
    Nov 18 at 20:14















up vote
2
down vote

favorite
1












I was asked this question at an interview and was stumped by it. The problem is as follows:




Alice is playing an online game. She wins the first round and loses the second. The probability she then wins subsequent rounds is proportional to the number of wins. Calculate the probability that after 100 games, the number of wins and losses are equal.




I am unsure of how to proceed. At the interview, I was originally thinking of using a simple sum of



$$sum_i alpha w_i delta_i,$$



where $alpha$ is normalisation constant, $w_i$ is the number of wins at the $i$th game and $delta_i$ is either 0 or 1. However, I doubt this is a correct approach, and $w_i$ is dependent on the $delta$’s for $j<i$.



I was discussing with a mathematician friend who said that this is a possible variation of Polya’s urn, but I can’t see the connection. Could anyone help me with this visualisation and provide hints on how to move forward? Thank you!










share|cite|improve this question




















  • 1




    Saying the probability in subsequent rounds is proportional to the number of wins is not sufficient. It might be fixed at $0$. I think this is usually asked with the probability in each round being the fraction of wins up to that point, so for round $3$ she has $frac 12$ chance to win and if she wins in round $3$ she has $frac 23$ chance to win round $4$.
    – Ross Millikan
    Nov 18 at 19:55










  • @RossMillikan I see – could you talk a bit more about that? I’m curious!
    – user107224
    Nov 18 at 19:57










  • This is exactly the Polya urn model. en.wikipedia.org/wiki/P%C3%B3lya_urn_model See the 2nd paragraph. Then interpret a black ball as WIN and a white ball as LOSE. $Prob(WIN) = $ exactly the fraction of black balls = fraction of previous wins. Having said this, I don't know how to solve this model but I suspect some googling would reveal quite a lot of resources.
    – antkam
    Nov 18 at 20:14













up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I was asked this question at an interview and was stumped by it. The problem is as follows:




Alice is playing an online game. She wins the first round and loses the second. The probability she then wins subsequent rounds is proportional to the number of wins. Calculate the probability that after 100 games, the number of wins and losses are equal.




I am unsure of how to proceed. At the interview, I was originally thinking of using a simple sum of



$$sum_i alpha w_i delta_i,$$



where $alpha$ is normalisation constant, $w_i$ is the number of wins at the $i$th game and $delta_i$ is either 0 or 1. However, I doubt this is a correct approach, and $w_i$ is dependent on the $delta$’s for $j<i$.



I was discussing with a mathematician friend who said that this is a possible variation of Polya’s urn, but I can’t see the connection. Could anyone help me with this visualisation and provide hints on how to move forward? Thank you!










share|cite|improve this question















I was asked this question at an interview and was stumped by it. The problem is as follows:




Alice is playing an online game. She wins the first round and loses the second. The probability she then wins subsequent rounds is proportional to the number of wins. Calculate the probability that after 100 games, the number of wins and losses are equal.




I am unsure of how to proceed. At the interview, I was originally thinking of using a simple sum of



$$sum_i alpha w_i delta_i,$$



where $alpha$ is normalisation constant, $w_i$ is the number of wins at the $i$th game and $delta_i$ is either 0 or 1. However, I doubt this is a correct approach, and $w_i$ is dependent on the $delta$’s for $j<i$.



I was discussing with a mathematician friend who said that this is a possible variation of Polya’s urn, but I can’t see the connection. Could anyone help me with this visualisation and provide hints on how to move forward? Thank you!







probability probability-theory statistics game-theory polya-urn-model






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 18 at 19:34

























asked Nov 18 at 10:22









user107224

378214




378214








  • 1




    Saying the probability in subsequent rounds is proportional to the number of wins is not sufficient. It might be fixed at $0$. I think this is usually asked with the probability in each round being the fraction of wins up to that point, so for round $3$ she has $frac 12$ chance to win and if she wins in round $3$ she has $frac 23$ chance to win round $4$.
    – Ross Millikan
    Nov 18 at 19:55










  • @RossMillikan I see – could you talk a bit more about that? I’m curious!
    – user107224
    Nov 18 at 19:57










  • This is exactly the Polya urn model. en.wikipedia.org/wiki/P%C3%B3lya_urn_model See the 2nd paragraph. Then interpret a black ball as WIN and a white ball as LOSE. $Prob(WIN) = $ exactly the fraction of black balls = fraction of previous wins. Having said this, I don't know how to solve this model but I suspect some googling would reveal quite a lot of resources.
    – antkam
    Nov 18 at 20:14














  • 1




    Saying the probability in subsequent rounds is proportional to the number of wins is not sufficient. It might be fixed at $0$. I think this is usually asked with the probability in each round being the fraction of wins up to that point, so for round $3$ she has $frac 12$ chance to win and if she wins in round $3$ she has $frac 23$ chance to win round $4$.
    – Ross Millikan
    Nov 18 at 19:55










  • @RossMillikan I see – could you talk a bit more about that? I’m curious!
    – user107224
    Nov 18 at 19:57










  • This is exactly the Polya urn model. en.wikipedia.org/wiki/P%C3%B3lya_urn_model See the 2nd paragraph. Then interpret a black ball as WIN and a white ball as LOSE. $Prob(WIN) = $ exactly the fraction of black balls = fraction of previous wins. Having said this, I don't know how to solve this model but I suspect some googling would reveal quite a lot of resources.
    – antkam
    Nov 18 at 20:14








1




1




Saying the probability in subsequent rounds is proportional to the number of wins is not sufficient. It might be fixed at $0$. I think this is usually asked with the probability in each round being the fraction of wins up to that point, so for round $3$ she has $frac 12$ chance to win and if she wins in round $3$ she has $frac 23$ chance to win round $4$.
– Ross Millikan
Nov 18 at 19:55




Saying the probability in subsequent rounds is proportional to the number of wins is not sufficient. It might be fixed at $0$. I think this is usually asked with the probability in each round being the fraction of wins up to that point, so for round $3$ she has $frac 12$ chance to win and if she wins in round $3$ she has $frac 23$ chance to win round $4$.
– Ross Millikan
Nov 18 at 19:55












@RossMillikan I see – could you talk a bit more about that? I’m curious!
– user107224
Nov 18 at 19:57




@RossMillikan I see – could you talk a bit more about that? I’m curious!
– user107224
Nov 18 at 19:57












This is exactly the Polya urn model. en.wikipedia.org/wiki/P%C3%B3lya_urn_model See the 2nd paragraph. Then interpret a black ball as WIN and a white ball as LOSE. $Prob(WIN) = $ exactly the fraction of black balls = fraction of previous wins. Having said this, I don't know how to solve this model but I suspect some googling would reveal quite a lot of resources.
– antkam
Nov 18 at 20:14




This is exactly the Polya urn model. en.wikipedia.org/wiki/P%C3%B3lya_urn_model See the 2nd paragraph. Then interpret a black ball as WIN and a white ball as LOSE. $Prob(WIN) = $ exactly the fraction of black balls = fraction of previous wins. Having said this, I don't know how to solve this model but I suspect some googling would reveal quite a lot of resources.
– antkam
Nov 18 at 20:14










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










Let $W_i$ and $L_i$ denote the number of wins and losses after the $i$-th rounds. Then, assuming that the probability of winning the $(i+1)$-th round is $W_i/(W_i+L_i)$,
begin{align}
&mathsf{P}(W_{100}=L_{100}mid W_2=L_2) \
&qquad=binom{98}{49}frac{W_2(W_2+1)cdots (W_2+48)times L_2(L_2+1)cdots (L_2+48)}{(W_2+L_2)(W_2+L_2+1)cdots(W_2+L_2+97)} \
&qquad=binom{98}{49}frac{(1cdot 2cdots 48cdot 49)^2}{2cdot 3cdots 98cdot 99}=frac{1}{99}.
end{align}






share|cite|improve this answer























    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',
    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%2f3003352%2fvariation-of-polya-s-urn-problem%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    Let $W_i$ and $L_i$ denote the number of wins and losses after the $i$-th rounds. Then, assuming that the probability of winning the $(i+1)$-th round is $W_i/(W_i+L_i)$,
    begin{align}
    &mathsf{P}(W_{100}=L_{100}mid W_2=L_2) \
    &qquad=binom{98}{49}frac{W_2(W_2+1)cdots (W_2+48)times L_2(L_2+1)cdots (L_2+48)}{(W_2+L_2)(W_2+L_2+1)cdots(W_2+L_2+97)} \
    &qquad=binom{98}{49}frac{(1cdot 2cdots 48cdot 49)^2}{2cdot 3cdots 98cdot 99}=frac{1}{99}.
    end{align}






    share|cite|improve this answer



























      up vote
      4
      down vote



      accepted










      Let $W_i$ and $L_i$ denote the number of wins and losses after the $i$-th rounds. Then, assuming that the probability of winning the $(i+1)$-th round is $W_i/(W_i+L_i)$,
      begin{align}
      &mathsf{P}(W_{100}=L_{100}mid W_2=L_2) \
      &qquad=binom{98}{49}frac{W_2(W_2+1)cdots (W_2+48)times L_2(L_2+1)cdots (L_2+48)}{(W_2+L_2)(W_2+L_2+1)cdots(W_2+L_2+97)} \
      &qquad=binom{98}{49}frac{(1cdot 2cdots 48cdot 49)^2}{2cdot 3cdots 98cdot 99}=frac{1}{99}.
      end{align}






      share|cite|improve this answer

























        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        Let $W_i$ and $L_i$ denote the number of wins and losses after the $i$-th rounds. Then, assuming that the probability of winning the $(i+1)$-th round is $W_i/(W_i+L_i)$,
        begin{align}
        &mathsf{P}(W_{100}=L_{100}mid W_2=L_2) \
        &qquad=binom{98}{49}frac{W_2(W_2+1)cdots (W_2+48)times L_2(L_2+1)cdots (L_2+48)}{(W_2+L_2)(W_2+L_2+1)cdots(W_2+L_2+97)} \
        &qquad=binom{98}{49}frac{(1cdot 2cdots 48cdot 49)^2}{2cdot 3cdots 98cdot 99}=frac{1}{99}.
        end{align}






        share|cite|improve this answer














        Let $W_i$ and $L_i$ denote the number of wins and losses after the $i$-th rounds. Then, assuming that the probability of winning the $(i+1)$-th round is $W_i/(W_i+L_i)$,
        begin{align}
        &mathsf{P}(W_{100}=L_{100}mid W_2=L_2) \
        &qquad=binom{98}{49}frac{W_2(W_2+1)cdots (W_2+48)times L_2(L_2+1)cdots (L_2+48)}{(W_2+L_2)(W_2+L_2+1)cdots(W_2+L_2+97)} \
        &qquad=binom{98}{49}frac{(1cdot 2cdots 48cdot 49)^2}{2cdot 3cdots 98cdot 99}=frac{1}{99}.
        end{align}







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Nov 18 at 22:59

























        answered Nov 18 at 20:17









        d.k.o.

        8,189527




        8,189527






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3003352%2fvariation-of-polya-s-urn-problem%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

            QoS: MAC-Priority for clients behind a repeater

            Ивакино (Тотемский район)

            Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)