Calculate the expected distance that the boat travels.

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











up vote
0
down vote

favorite












Its a discrete probability question.



Imagine a boat and two banks on an integer line.
One of the banks is at the origin and the other bank can be at any integer in range $[B+1,2B]$



If the right bank is at distance $d$ from the origin, then the boat can be at any integer point in the river in the range $[1,d-1]$.
The boat always goes towards the nearest bank.



What is the expected distance travelled by the boat?



The right bank can be any of the possible distances with equal probability and the boat can be at any of the possible feasible distances with equal probability.



Suppose the distance between two banks is $2D$, then the expected distance travelled by the boat is $(1+2ldots +D)/D=(D+1)/2$







share|cite|improve this question





















  • OK, suppose $B = 3.$ Let $(x,y)$ signify that the distance between banks is $x$ and the boat is $y$ distance from the left bank. When you say the cases are equiprobable, do you mean that $(4,1)$ and $(6,1)$ have the same probability? Or do you mean that the distance between banks is equally likely to be $4$ or $6$? Also, can the distance of the boat from a bank be $0$ (an integer) or must it be at least $1$?
    – David K
    Jul 21 at 14:41










  • What I mean is the distance between two banks can be any integer in range of $B+1$ and $2B$ with equal probability and when the two banks are $D$ distance apart, the boat has equal probability to be at any distance from 0 to D from the left bank. If it helps you can assume that the distance is at least 1, but that may not be an important detail
    – Vk1
    Jul 21 at 14:54











  • I have changed to question for clarity, hope that helps. Yes I meant that distance between banks is equally likely to be 4 or 6.
    – Vk1
    Jul 21 at 18:31










  • People may be waiting to see what you tried. Supposing you knew the distance between banks was $D$ (not random), could you find the expected distance traveled?
    – David K
    Jul 21 at 23:19










  • It should be about $D/4$, since best case the distance is 0 and worst case the distance is $D/2$
    – Vk1
    Jul 22 at 10:48














up vote
0
down vote

favorite












Its a discrete probability question.



Imagine a boat and two banks on an integer line.
One of the banks is at the origin and the other bank can be at any integer in range $[B+1,2B]$



If the right bank is at distance $d$ from the origin, then the boat can be at any integer point in the river in the range $[1,d-1]$.
The boat always goes towards the nearest bank.



What is the expected distance travelled by the boat?



The right bank can be any of the possible distances with equal probability and the boat can be at any of the possible feasible distances with equal probability.



Suppose the distance between two banks is $2D$, then the expected distance travelled by the boat is $(1+2ldots +D)/D=(D+1)/2$







share|cite|improve this question





















  • OK, suppose $B = 3.$ Let $(x,y)$ signify that the distance between banks is $x$ and the boat is $y$ distance from the left bank. When you say the cases are equiprobable, do you mean that $(4,1)$ and $(6,1)$ have the same probability? Or do you mean that the distance between banks is equally likely to be $4$ or $6$? Also, can the distance of the boat from a bank be $0$ (an integer) or must it be at least $1$?
    – David K
    Jul 21 at 14:41










  • What I mean is the distance between two banks can be any integer in range of $B+1$ and $2B$ with equal probability and when the two banks are $D$ distance apart, the boat has equal probability to be at any distance from 0 to D from the left bank. If it helps you can assume that the distance is at least 1, but that may not be an important detail
    – Vk1
    Jul 21 at 14:54











  • I have changed to question for clarity, hope that helps. Yes I meant that distance between banks is equally likely to be 4 or 6.
    – Vk1
    Jul 21 at 18:31










  • People may be waiting to see what you tried. Supposing you knew the distance between banks was $D$ (not random), could you find the expected distance traveled?
    – David K
    Jul 21 at 23:19










  • It should be about $D/4$, since best case the distance is 0 and worst case the distance is $D/2$
    – Vk1
    Jul 22 at 10:48












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Its a discrete probability question.



Imagine a boat and two banks on an integer line.
One of the banks is at the origin and the other bank can be at any integer in range $[B+1,2B]$



If the right bank is at distance $d$ from the origin, then the boat can be at any integer point in the river in the range $[1,d-1]$.
The boat always goes towards the nearest bank.



What is the expected distance travelled by the boat?



The right bank can be any of the possible distances with equal probability and the boat can be at any of the possible feasible distances with equal probability.



Suppose the distance between two banks is $2D$, then the expected distance travelled by the boat is $(1+2ldots +D)/D=(D+1)/2$







share|cite|improve this question













Its a discrete probability question.



Imagine a boat and two banks on an integer line.
One of the banks is at the origin and the other bank can be at any integer in range $[B+1,2B]$



If the right bank is at distance $d$ from the origin, then the boat can be at any integer point in the river in the range $[1,d-1]$.
The boat always goes towards the nearest bank.



What is the expected distance travelled by the boat?



The right bank can be any of the possible distances with equal probability and the boat can be at any of the possible feasible distances with equal probability.



Suppose the distance between two banks is $2D$, then the expected distance travelled by the boat is $(1+2ldots +D)/D=(D+1)/2$









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Jul 22 at 10:47
























asked Jul 21 at 14:11









Vk1

147




147











  • OK, suppose $B = 3.$ Let $(x,y)$ signify that the distance between banks is $x$ and the boat is $y$ distance from the left bank. When you say the cases are equiprobable, do you mean that $(4,1)$ and $(6,1)$ have the same probability? Or do you mean that the distance between banks is equally likely to be $4$ or $6$? Also, can the distance of the boat from a bank be $0$ (an integer) or must it be at least $1$?
    – David K
    Jul 21 at 14:41










  • What I mean is the distance between two banks can be any integer in range of $B+1$ and $2B$ with equal probability and when the two banks are $D$ distance apart, the boat has equal probability to be at any distance from 0 to D from the left bank. If it helps you can assume that the distance is at least 1, but that may not be an important detail
    – Vk1
    Jul 21 at 14:54











  • I have changed to question for clarity, hope that helps. Yes I meant that distance between banks is equally likely to be 4 or 6.
    – Vk1
    Jul 21 at 18:31










  • People may be waiting to see what you tried. Supposing you knew the distance between banks was $D$ (not random), could you find the expected distance traveled?
    – David K
    Jul 21 at 23:19










  • It should be about $D/4$, since best case the distance is 0 and worst case the distance is $D/2$
    – Vk1
    Jul 22 at 10:48
















  • OK, suppose $B = 3.$ Let $(x,y)$ signify that the distance between banks is $x$ and the boat is $y$ distance from the left bank. When you say the cases are equiprobable, do you mean that $(4,1)$ and $(6,1)$ have the same probability? Or do you mean that the distance between banks is equally likely to be $4$ or $6$? Also, can the distance of the boat from a bank be $0$ (an integer) or must it be at least $1$?
    – David K
    Jul 21 at 14:41










  • What I mean is the distance between two banks can be any integer in range of $B+1$ and $2B$ with equal probability and when the two banks are $D$ distance apart, the boat has equal probability to be at any distance from 0 to D from the left bank. If it helps you can assume that the distance is at least 1, but that may not be an important detail
    – Vk1
    Jul 21 at 14:54











  • I have changed to question for clarity, hope that helps. Yes I meant that distance between banks is equally likely to be 4 or 6.
    – Vk1
    Jul 21 at 18:31










  • People may be waiting to see what you tried. Supposing you knew the distance between banks was $D$ (not random), could you find the expected distance traveled?
    – David K
    Jul 21 at 23:19










  • It should be about $D/4$, since best case the distance is 0 and worst case the distance is $D/2$
    – Vk1
    Jul 22 at 10:48















OK, suppose $B = 3.$ Let $(x,y)$ signify that the distance between banks is $x$ and the boat is $y$ distance from the left bank. When you say the cases are equiprobable, do you mean that $(4,1)$ and $(6,1)$ have the same probability? Or do you mean that the distance between banks is equally likely to be $4$ or $6$? Also, can the distance of the boat from a bank be $0$ (an integer) or must it be at least $1$?
– David K
Jul 21 at 14:41




OK, suppose $B = 3.$ Let $(x,y)$ signify that the distance between banks is $x$ and the boat is $y$ distance from the left bank. When you say the cases are equiprobable, do you mean that $(4,1)$ and $(6,1)$ have the same probability? Or do you mean that the distance between banks is equally likely to be $4$ or $6$? Also, can the distance of the boat from a bank be $0$ (an integer) or must it be at least $1$?
– David K
Jul 21 at 14:41












What I mean is the distance between two banks can be any integer in range of $B+1$ and $2B$ with equal probability and when the two banks are $D$ distance apart, the boat has equal probability to be at any distance from 0 to D from the left bank. If it helps you can assume that the distance is at least 1, but that may not be an important detail
– Vk1
Jul 21 at 14:54





What I mean is the distance between two banks can be any integer in range of $B+1$ and $2B$ with equal probability and when the two banks are $D$ distance apart, the boat has equal probability to be at any distance from 0 to D from the left bank. If it helps you can assume that the distance is at least 1, but that may not be an important detail
– Vk1
Jul 21 at 14:54













I have changed to question for clarity, hope that helps. Yes I meant that distance between banks is equally likely to be 4 or 6.
– Vk1
Jul 21 at 18:31




I have changed to question for clarity, hope that helps. Yes I meant that distance between banks is equally likely to be 4 or 6.
– Vk1
Jul 21 at 18:31












People may be waiting to see what you tried. Supposing you knew the distance between banks was $D$ (not random), could you find the expected distance traveled?
– David K
Jul 21 at 23:19




People may be waiting to see what you tried. Supposing you knew the distance between banks was $D$ (not random), could you find the expected distance traveled?
– David K
Jul 21 at 23:19












It should be about $D/4$, since best case the distance is 0 and worst case the distance is $D/2$
– Vk1
Jul 22 at 10:48




It should be about $D/4$, since best case the distance is 0 and worst case the distance is $D/2$
– Vk1
Jul 22 at 10:48










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Let $X$ be the boat's initial location, then $X$ is uniformly distributed over $1,2,ldots,d-1$. The distance the boat travels is
$$
Y := minX, d-X.
$$
Now, $X<d-X$ iff $X<d/2$, and since $X$ and $d$ are integer, this is equivalent to $Xleqslant lfloor d/2rfloor$. It follows that
beginalign
mathbb E[Y] &= sum_j=1^d-1 (jwedge d-j)mathbb P(X=j)\
&= frac1d-1left(sum_j=1^lfloor d/2rfloor j + sum_j=lfloor d/2rfloor+1^d-1 (d-j) right)\
&= frac d2 -leftlfloorfrac d2rightrfloor left(1 - fracleftlfloorfrac d2rightrfloord-1 right) .
endalign






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%2f2858526%2fcalculate-the-expected-distance-that-the-boat-travels%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













    Let $X$ be the boat's initial location, then $X$ is uniformly distributed over $1,2,ldots,d-1$. The distance the boat travels is
    $$
    Y := minX, d-X.
    $$
    Now, $X<d-X$ iff $X<d/2$, and since $X$ and $d$ are integer, this is equivalent to $Xleqslant lfloor d/2rfloor$. It follows that
    beginalign
    mathbb E[Y] &= sum_j=1^d-1 (jwedge d-j)mathbb P(X=j)\
    &= frac1d-1left(sum_j=1^lfloor d/2rfloor j + sum_j=lfloor d/2rfloor+1^d-1 (d-j) right)\
    &= frac d2 -leftlfloorfrac d2rightrfloor left(1 - fracleftlfloorfrac d2rightrfloord-1 right) .
    endalign






    share|cite|improve this answer

























      up vote
      0
      down vote













      Let $X$ be the boat's initial location, then $X$ is uniformly distributed over $1,2,ldots,d-1$. The distance the boat travels is
      $$
      Y := minX, d-X.
      $$
      Now, $X<d-X$ iff $X<d/2$, and since $X$ and $d$ are integer, this is equivalent to $Xleqslant lfloor d/2rfloor$. It follows that
      beginalign
      mathbb E[Y] &= sum_j=1^d-1 (jwedge d-j)mathbb P(X=j)\
      &= frac1d-1left(sum_j=1^lfloor d/2rfloor j + sum_j=lfloor d/2rfloor+1^d-1 (d-j) right)\
      &= frac d2 -leftlfloorfrac d2rightrfloor left(1 - fracleftlfloorfrac d2rightrfloord-1 right) .
      endalign






      share|cite|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Let $X$ be the boat's initial location, then $X$ is uniformly distributed over $1,2,ldots,d-1$. The distance the boat travels is
        $$
        Y := minX, d-X.
        $$
        Now, $X<d-X$ iff $X<d/2$, and since $X$ and $d$ are integer, this is equivalent to $Xleqslant lfloor d/2rfloor$. It follows that
        beginalign
        mathbb E[Y] &= sum_j=1^d-1 (jwedge d-j)mathbb P(X=j)\
        &= frac1d-1left(sum_j=1^lfloor d/2rfloor j + sum_j=lfloor d/2rfloor+1^d-1 (d-j) right)\
        &= frac d2 -leftlfloorfrac d2rightrfloor left(1 - fracleftlfloorfrac d2rightrfloord-1 right) .
        endalign






        share|cite|improve this answer













        Let $X$ be the boat's initial location, then $X$ is uniformly distributed over $1,2,ldots,d-1$. The distance the boat travels is
        $$
        Y := minX, d-X.
        $$
        Now, $X<d-X$ iff $X<d/2$, and since $X$ and $d$ are integer, this is equivalent to $Xleqslant lfloor d/2rfloor$. It follows that
        beginalign
        mathbb E[Y] &= sum_j=1^d-1 (jwedge d-j)mathbb P(X=j)\
        &= frac1d-1left(sum_j=1^lfloor d/2rfloor j + sum_j=lfloor d/2rfloor+1^d-1 (d-j) right)\
        &= frac d2 -leftlfloorfrac d2rightrfloor left(1 - fracleftlfloorfrac d2rightrfloord-1 right) .
        endalign







        share|cite|improve this answer













        share|cite|improve this answer



        share|cite|improve this answer











        answered Jul 24 at 3:35









        Math1000

        18.4k31544




        18.4k31544






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2858526%2fcalculate-the-expected-distance-that-the-boat-travels%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?