Distribution of X-Y when X and Y are independent geometric











up vote
0
down vote

favorite












$X$ and $Y$ are independent geometric distributions with parameter $p$. Find the distribution for $X-Y$



I am aware that there are many similar questions. My problem with this specific transformation is that I cannot solve the summation I end up with.



This is what I have done:



$$Z = X - Y$$
$$P(Z=z) = P(X-Y=z)$$
$$= sum_{k=1}^infty P(Y=k)P(X=z+k)$$
$$= sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1}$$



Somehow the answer should be:



$$frac{p(1-p)^{|z|}}{2-p} $$



How does this sum turn into this final solution? Or have I done a mistake in the previous steps. Any help is appreciated, thanks!










share|cite|improve this question







New contributor




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




















  • Note that $z$ belongs to the set of all integers. There are two cases to consider when finding the distribution of $Z$: when $kge 1$ ( so that $zge 0$ ) and when $kge 1-z$ ( so that $z<0$ ). You have written the sum for the first case. Combining both cases you would get the final answer as given.
    – StubbornAtom
    19 hours ago















up vote
0
down vote

favorite












$X$ and $Y$ are independent geometric distributions with parameter $p$. Find the distribution for $X-Y$



I am aware that there are many similar questions. My problem with this specific transformation is that I cannot solve the summation I end up with.



This is what I have done:



$$Z = X - Y$$
$$P(Z=z) = P(X-Y=z)$$
$$= sum_{k=1}^infty P(Y=k)P(X=z+k)$$
$$= sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1}$$



Somehow the answer should be:



$$frac{p(1-p)^{|z|}}{2-p} $$



How does this sum turn into this final solution? Or have I done a mistake in the previous steps. Any help is appreciated, thanks!










share|cite|improve this question







New contributor




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




















  • Note that $z$ belongs to the set of all integers. There are two cases to consider when finding the distribution of $Z$: when $kge 1$ ( so that $zge 0$ ) and when $kge 1-z$ ( so that $z<0$ ). You have written the sum for the first case. Combining both cases you would get the final answer as given.
    – StubbornAtom
    19 hours ago













up vote
0
down vote

favorite









up vote
0
down vote

favorite











$X$ and $Y$ are independent geometric distributions with parameter $p$. Find the distribution for $X-Y$



I am aware that there are many similar questions. My problem with this specific transformation is that I cannot solve the summation I end up with.



This is what I have done:



$$Z = X - Y$$
$$P(Z=z) = P(X-Y=z)$$
$$= sum_{k=1}^infty P(Y=k)P(X=z+k)$$
$$= sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1}$$



Somehow the answer should be:



$$frac{p(1-p)^{|z|}}{2-p} $$



How does this sum turn into this final solution? Or have I done a mistake in the previous steps. Any help is appreciated, thanks!










share|cite|improve this question







New contributor




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











$X$ and $Y$ are independent geometric distributions with parameter $p$. Find the distribution for $X-Y$



I am aware that there are many similar questions. My problem with this specific transformation is that I cannot solve the summation I end up with.



This is what I have done:



$$Z = X - Y$$
$$P(Z=z) = P(X-Y=z)$$
$$= sum_{k=1}^infty P(Y=k)P(X=z+k)$$
$$= sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1}$$



Somehow the answer should be:



$$frac{p(1-p)^{|z|}}{2-p} $$



How does this sum turn into this final solution? Or have I done a mistake in the previous steps. Any help is appreciated, thanks!







probability probability-distributions summation transformation






share|cite|improve this question







New contributor




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











share|cite|improve this question







New contributor




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









share|cite|improve this question




share|cite|improve this question






New contributor




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









asked 23 hours ago









SolidSnake

31




31




New contributor




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





New contributor





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






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












  • Note that $z$ belongs to the set of all integers. There are two cases to consider when finding the distribution of $Z$: when $kge 1$ ( so that $zge 0$ ) and when $kge 1-z$ ( so that $z<0$ ). You have written the sum for the first case. Combining both cases you would get the final answer as given.
    – StubbornAtom
    19 hours ago


















  • Note that $z$ belongs to the set of all integers. There are two cases to consider when finding the distribution of $Z$: when $kge 1$ ( so that $zge 0$ ) and when $kge 1-z$ ( so that $z<0$ ). You have written the sum for the first case. Combining both cases you would get the final answer as given.
    – StubbornAtom
    19 hours ago
















Note that $z$ belongs to the set of all integers. There are two cases to consider when finding the distribution of $Z$: when $kge 1$ ( so that $zge 0$ ) and when $kge 1-z$ ( so that $z<0$ ). You have written the sum for the first case. Combining both cases you would get the final answer as given.
– StubbornAtom
19 hours ago




Note that $z$ belongs to the set of all integers. There are two cases to consider when finding the distribution of $Z$: when $kge 1$ ( so that $zge 0$ ) and when $kge 1-z$ ( so that $z<0$ ). You have written the sum for the first case. Combining both cases you would get the final answer as given.
– StubbornAtom
19 hours ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote



accepted










Suppose $z ge 0$,begin{align}sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1} &= p^2sum_{k=1}^infty (1-p)^{z+2k-2} \
&=p^2(1-p)^z sum_{k=1}^infty ((1-p)^2)^{k-1}\
&=frac{p^2(1-p)^z}{1-(1-p)^2}\
&=frac{p^2(1-p)^z}{(2-p)p}\
&=frac{p(1-p)^z}{2-p}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
    });


    }
    });






    SolidSnake is a new contributor. Be nice, and check out our Code of Conduct.










     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3004536%2fdistribution-of-x-y-when-x-and-y-are-independent-geometric%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
    0
    down vote



    accepted










    Suppose $z ge 0$,begin{align}sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1} &= p^2sum_{k=1}^infty (1-p)^{z+2k-2} \
    &=p^2(1-p)^z sum_{k=1}^infty ((1-p)^2)^{k-1}\
    &=frac{p^2(1-p)^z}{1-(1-p)^2}\
    &=frac{p^2(1-p)^z}{(2-p)p}\
    &=frac{p(1-p)^z}{2-p}end{align}






    share|cite|improve this answer

























      up vote
      0
      down vote



      accepted










      Suppose $z ge 0$,begin{align}sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1} &= p^2sum_{k=1}^infty (1-p)^{z+2k-2} \
      &=p^2(1-p)^z sum_{k=1}^infty ((1-p)^2)^{k-1}\
      &=frac{p^2(1-p)^z}{1-(1-p)^2}\
      &=frac{p^2(1-p)^z}{(2-p)p}\
      &=frac{p(1-p)^z}{2-p}end{align}






      share|cite|improve this answer























        up vote
        0
        down vote



        accepted







        up vote
        0
        down vote



        accepted






        Suppose $z ge 0$,begin{align}sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1} &= p^2sum_{k=1}^infty (1-p)^{z+2k-2} \
        &=p^2(1-p)^z sum_{k=1}^infty ((1-p)^2)^{k-1}\
        &=frac{p^2(1-p)^z}{1-(1-p)^2}\
        &=frac{p^2(1-p)^z}{(2-p)p}\
        &=frac{p(1-p)^z}{2-p}end{align}






        share|cite|improve this answer












        Suppose $z ge 0$,begin{align}sum_{k=1}^infty p(1-p)^{k-1} p(1-p)^{z+k-1} &= p^2sum_{k=1}^infty (1-p)^{z+2k-2} \
        &=p^2(1-p)^z sum_{k=1}^infty ((1-p)^2)^{k-1}\
        &=frac{p^2(1-p)^z}{1-(1-p)^2}\
        &=frac{p^2(1-p)^z}{(2-p)p}\
        &=frac{p(1-p)^z}{2-p}end{align}







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered 23 hours ago









        Siong Thye Goh

        92.9k1462114




        92.9k1462114






















            SolidSnake is a new contributor. Be nice, and check out our Code of Conduct.










             

            draft saved


            draft discarded


















            SolidSnake is a new contributor. Be nice, and check out our Code of Conduct.













            SolidSnake is a new contributor. Be nice, and check out our Code of Conduct.












            SolidSnake is a new contributor. Be nice, and check out our Code of Conduct.















             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3004536%2fdistribution-of-x-y-when-x-and-y-are-independent-geometric%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

            android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

            SQL update select statement

            'app-layout' is not a known element: how to share Component with different Modules