Expectation of pricing algorithm

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I´d like to calculate the expectation of an algorithm. The input to the algorithm are n customers with values $v_1$,..$v_n$(i.i.d) drawn from a normal distribution. Now the algorithm sells an item with a fixed price p and offers this price to the customers sequentially. The first customer i with value $v_i > p$ gets the item.



What is the expectation of the value of the customers we sold to($v$) achieved by the algorithm?
I tried to solve it by calculating the expectation of the normal distribution from p as the lower bound to infinity, but it didn´t match the result I was getting when solving this empirically.



Many thanks in advance!







share|cite|improve this question

























    up vote
    0
    down vote

    favorite












    I´d like to calculate the expectation of an algorithm. The input to the algorithm are n customers with values $v_1$,..$v_n$(i.i.d) drawn from a normal distribution. Now the algorithm sells an item with a fixed price p and offers this price to the customers sequentially. The first customer i with value $v_i > p$ gets the item.



    What is the expectation of the value of the customers we sold to($v$) achieved by the algorithm?
    I tried to solve it by calculating the expectation of the normal distribution from p as the lower bound to infinity, but it didn´t match the result I was getting when solving this empirically.



    Many thanks in advance!







    share|cite|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I´d like to calculate the expectation of an algorithm. The input to the algorithm are n customers with values $v_1$,..$v_n$(i.i.d) drawn from a normal distribution. Now the algorithm sells an item with a fixed price p and offers this price to the customers sequentially. The first customer i with value $v_i > p$ gets the item.



      What is the expectation of the value of the customers we sold to($v$) achieved by the algorithm?
      I tried to solve it by calculating the expectation of the normal distribution from p as the lower bound to infinity, but it didn´t match the result I was getting when solving this empirically.



      Many thanks in advance!







      share|cite|improve this question













      I´d like to calculate the expectation of an algorithm. The input to the algorithm are n customers with values $v_1$,..$v_n$(i.i.d) drawn from a normal distribution. Now the algorithm sells an item with a fixed price p and offers this price to the customers sequentially. The first customer i with value $v_i > p$ gets the item.



      What is the expectation of the value of the customers we sold to($v$) achieved by the algorithm?
      I tried to solve it by calculating the expectation of the normal distribution from p as the lower bound to infinity, but it didn´t match the result I was getting when solving this empirically.



      Many thanks in advance!









      share|cite|improve this question












      share|cite|improve this question




      share|cite|improve this question








      edited Jul 28 at 12:55
























      asked Jul 27 at 22:39









      Dashingo

      83




      83




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          Suppose $v_iin N(mu,sigma^2)$. Let $z_i=(v_i-mu)/sigma$, so the $z_i$ are standard normal, and let $q=(p-mu)/sigma$ be the standardized price. Let $Phi(x)$ be the standard normal cdf, with pdf $phi(x)$.



          Conditioned on the existence at least one customer whose value is above the price, then the first customer whose value is larger than $p$ will have a value which is normally distributed, conditional on being greater than $p$. The conditional expected value is
          $$
          E[vmid v>p]=E[sigma z+mu|z>q]=mu+sigma E[z|z>q] =mu+sigmacdotfracint_q^infty x,phi(x),dxP(z>q)
          $$
          The normal cdf satisfies $xphi(x)=-phi'(x)$, so using the fundamental theorem of calculus this is
          $$
          mu+sigmafracphi(q)1-Phi(q)
          $$
          To make this unconditional, we have to multiply by the probability that at least one customer's value is above the price, resulting in
          $$
          boxedBig(1-Phi(q)^nBig)left(mu+sigmafracphi(q)1-Phi(q)right)
          $$






          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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f2864817%2fexpectation-of-pricing-algorithm%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote



            accepted










            Suppose $v_iin N(mu,sigma^2)$. Let $z_i=(v_i-mu)/sigma$, so the $z_i$ are standard normal, and let $q=(p-mu)/sigma$ be the standardized price. Let $Phi(x)$ be the standard normal cdf, with pdf $phi(x)$.



            Conditioned on the existence at least one customer whose value is above the price, then the first customer whose value is larger than $p$ will have a value which is normally distributed, conditional on being greater than $p$. The conditional expected value is
            $$
            E[vmid v>p]=E[sigma z+mu|z>q]=mu+sigma E[z|z>q] =mu+sigmacdotfracint_q^infty x,phi(x),dxP(z>q)
            $$
            The normal cdf satisfies $xphi(x)=-phi'(x)$, so using the fundamental theorem of calculus this is
            $$
            mu+sigmafracphi(q)1-Phi(q)
            $$
            To make this unconditional, we have to multiply by the probability that at least one customer's value is above the price, resulting in
            $$
            boxedBig(1-Phi(q)^nBig)left(mu+sigmafracphi(q)1-Phi(q)right)
            $$






            share|cite|improve this answer

























              up vote
              0
              down vote



              accepted










              Suppose $v_iin N(mu,sigma^2)$. Let $z_i=(v_i-mu)/sigma$, so the $z_i$ are standard normal, and let $q=(p-mu)/sigma$ be the standardized price. Let $Phi(x)$ be the standard normal cdf, with pdf $phi(x)$.



              Conditioned on the existence at least one customer whose value is above the price, then the first customer whose value is larger than $p$ will have a value which is normally distributed, conditional on being greater than $p$. The conditional expected value is
              $$
              E[vmid v>p]=E[sigma z+mu|z>q]=mu+sigma E[z|z>q] =mu+sigmacdotfracint_q^infty x,phi(x),dxP(z>q)
              $$
              The normal cdf satisfies $xphi(x)=-phi'(x)$, so using the fundamental theorem of calculus this is
              $$
              mu+sigmafracphi(q)1-Phi(q)
              $$
              To make this unconditional, we have to multiply by the probability that at least one customer's value is above the price, resulting in
              $$
              boxedBig(1-Phi(q)^nBig)left(mu+sigmafracphi(q)1-Phi(q)right)
              $$






              share|cite|improve this answer























                up vote
                0
                down vote



                accepted







                up vote
                0
                down vote



                accepted






                Suppose $v_iin N(mu,sigma^2)$. Let $z_i=(v_i-mu)/sigma$, so the $z_i$ are standard normal, and let $q=(p-mu)/sigma$ be the standardized price. Let $Phi(x)$ be the standard normal cdf, with pdf $phi(x)$.



                Conditioned on the existence at least one customer whose value is above the price, then the first customer whose value is larger than $p$ will have a value which is normally distributed, conditional on being greater than $p$. The conditional expected value is
                $$
                E[vmid v>p]=E[sigma z+mu|z>q]=mu+sigma E[z|z>q] =mu+sigmacdotfracint_q^infty x,phi(x),dxP(z>q)
                $$
                The normal cdf satisfies $xphi(x)=-phi'(x)$, so using the fundamental theorem of calculus this is
                $$
                mu+sigmafracphi(q)1-Phi(q)
                $$
                To make this unconditional, we have to multiply by the probability that at least one customer's value is above the price, resulting in
                $$
                boxedBig(1-Phi(q)^nBig)left(mu+sigmafracphi(q)1-Phi(q)right)
                $$






                share|cite|improve this answer













                Suppose $v_iin N(mu,sigma^2)$. Let $z_i=(v_i-mu)/sigma$, so the $z_i$ are standard normal, and let $q=(p-mu)/sigma$ be the standardized price. Let $Phi(x)$ be the standard normal cdf, with pdf $phi(x)$.



                Conditioned on the existence at least one customer whose value is above the price, then the first customer whose value is larger than $p$ will have a value which is normally distributed, conditional on being greater than $p$. The conditional expected value is
                $$
                E[vmid v>p]=E[sigma z+mu|z>q]=mu+sigma E[z|z>q] =mu+sigmacdotfracint_q^infty x,phi(x),dxP(z>q)
                $$
                The normal cdf satisfies $xphi(x)=-phi'(x)$, so using the fundamental theorem of calculus this is
                $$
                mu+sigmafracphi(q)1-Phi(q)
                $$
                To make this unconditional, we have to multiply by the probability that at least one customer's value is above the price, resulting in
                $$
                boxedBig(1-Phi(q)^nBig)left(mu+sigmafracphi(q)1-Phi(q)right)
                $$







                share|cite|improve this answer













                share|cite|improve this answer



                share|cite|improve this answer











                answered Jul 28 at 4:12









                Mike Earnest

                14.9k11644




                14.9k11644






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2864817%2fexpectation-of-pricing-algorithm%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What is the equation of a 3D cone with generalised tilt?

                    Color the edges and diagonals of a regular polygon

                    Relationship between determinant of matrix and determinant of adjoint?