Expected Value: Use Indicator variables and random variables












2












$begingroup$



Question:



Every time a customer orders a drink, the waiter serves the wrong drink with probability $frac{1}{12}$, independently of other orders.



You order $7$ ciders, one cider at a time. Let $(D_1,D_2,...,D_7)$ be the sequence of drinks that the waiter serves. Define the following random variable $X$:



$X$ = the number of indices i such that $D_i$ is a cider and $D_{i+1}$ is not a cider.



What is the expected value $E(X)$ of $X$




Answer: 0.45833333



Attempt:
I start off labelling my indicator variable:
$$
X = left{begin{array}{rc} 1,&text{the number of indices i such that $D_i$ is a cider and $D_{i+1}$ is not a cider}{} \ 0,&text{any other cases}{}end{array}right.
$$



I need to find $P(X=1)$ but I'm not sure how to go about it. Will I be served 4 ciders and 3 non-cider drinks according to the condition? How do I incorporate the probability of the waiter getting the drink wrong?



I am struggling to proceed with these questions after defining the indicator variables. Any step by step guide would be appreciated.










share|cite|improve this question









$endgroup$

















    2












    $begingroup$



    Question:



    Every time a customer orders a drink, the waiter serves the wrong drink with probability $frac{1}{12}$, independently of other orders.



    You order $7$ ciders, one cider at a time. Let $(D_1,D_2,...,D_7)$ be the sequence of drinks that the waiter serves. Define the following random variable $X$:



    $X$ = the number of indices i such that $D_i$ is a cider and $D_{i+1}$ is not a cider.



    What is the expected value $E(X)$ of $X$




    Answer: 0.45833333



    Attempt:
    I start off labelling my indicator variable:
    $$
    X = left{begin{array}{rc} 1,&text{the number of indices i such that $D_i$ is a cider and $D_{i+1}$ is not a cider}{} \ 0,&text{any other cases}{}end{array}right.
    $$



    I need to find $P(X=1)$ but I'm not sure how to go about it. Will I be served 4 ciders and 3 non-cider drinks according to the condition? How do I incorporate the probability of the waiter getting the drink wrong?



    I am struggling to proceed with these questions after defining the indicator variables. Any step by step guide would be appreciated.










    share|cite|improve this question









    $endgroup$















      2












      2








      2





      $begingroup$



      Question:



      Every time a customer orders a drink, the waiter serves the wrong drink with probability $frac{1}{12}$, independently of other orders.



      You order $7$ ciders, one cider at a time. Let $(D_1,D_2,...,D_7)$ be the sequence of drinks that the waiter serves. Define the following random variable $X$:



      $X$ = the number of indices i such that $D_i$ is a cider and $D_{i+1}$ is not a cider.



      What is the expected value $E(X)$ of $X$




      Answer: 0.45833333



      Attempt:
      I start off labelling my indicator variable:
      $$
      X = left{begin{array}{rc} 1,&text{the number of indices i such that $D_i$ is a cider and $D_{i+1}$ is not a cider}{} \ 0,&text{any other cases}{}end{array}right.
      $$



      I need to find $P(X=1)$ but I'm not sure how to go about it. Will I be served 4 ciders and 3 non-cider drinks according to the condition? How do I incorporate the probability of the waiter getting the drink wrong?



      I am struggling to proceed with these questions after defining the indicator variables. Any step by step guide would be appreciated.










      share|cite|improve this question









      $endgroup$





      Question:



      Every time a customer orders a drink, the waiter serves the wrong drink with probability $frac{1}{12}$, independently of other orders.



      You order $7$ ciders, one cider at a time. Let $(D_1,D_2,...,D_7)$ be the sequence of drinks that the waiter serves. Define the following random variable $X$:



      $X$ = the number of indices i such that $D_i$ is a cider and $D_{i+1}$ is not a cider.



      What is the expected value $E(X)$ of $X$




      Answer: 0.45833333



      Attempt:
      I start off labelling my indicator variable:
      $$
      X = left{begin{array}{rc} 1,&text{the number of indices i such that $D_i$ is a cider and $D_{i+1}$ is not a cider}{} \ 0,&text{any other cases}{}end{array}right.
      $$



      I need to find $P(X=1)$ but I'm not sure how to go about it. Will I be served 4 ciders and 3 non-cider drinks according to the condition? How do I incorporate the probability of the waiter getting the drink wrong?



      I am struggling to proceed with these questions after defining the indicator variables. Any step by step guide would be appreciated.







      probability-theory discrete-mathematics random-variables expected-value






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 1 '18 at 6:10









      TobyToby

      1577




      1577






















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$

          Let $X_i$ be indicator variable for $i$-th event, so $X=X_1+...+X_7$. Then , for $ileq 6$ we have $$E(X_i)=P(X_i=1) = {11over 12}cdot {1over 12} $$ and $$E(X_7)= P(X_7 = 1)= {11over 12}cdot 0 = 0$$



          so $$E(X) = E(X_1)+E(X_2)+...+E(X_7) =6cdot {1over 12}cdot {11over 12} = {11over 24} $$






          share|cite|improve this answer











          $endgroup$













            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',
            autoActivateHeartbeat: false,
            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%2f3021042%2fexpected-value-use-indicator-variables-and-random-variables%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









            2












            $begingroup$

            Let $X_i$ be indicator variable for $i$-th event, so $X=X_1+...+X_7$. Then , for $ileq 6$ we have $$E(X_i)=P(X_i=1) = {11over 12}cdot {1over 12} $$ and $$E(X_7)= P(X_7 = 1)= {11over 12}cdot 0 = 0$$



            so $$E(X) = E(X_1)+E(X_2)+...+E(X_7) =6cdot {1over 12}cdot {11over 12} = {11over 24} $$






            share|cite|improve this answer











            $endgroup$


















              2












              $begingroup$

              Let $X_i$ be indicator variable for $i$-th event, so $X=X_1+...+X_7$. Then , for $ileq 6$ we have $$E(X_i)=P(X_i=1) = {11over 12}cdot {1over 12} $$ and $$E(X_7)= P(X_7 = 1)= {11over 12}cdot 0 = 0$$



              so $$E(X) = E(X_1)+E(X_2)+...+E(X_7) =6cdot {1over 12}cdot {11over 12} = {11over 24} $$






              share|cite|improve this answer











              $endgroup$
















                2












                2








                2





                $begingroup$

                Let $X_i$ be indicator variable for $i$-th event, so $X=X_1+...+X_7$. Then , for $ileq 6$ we have $$E(X_i)=P(X_i=1) = {11over 12}cdot {1over 12} $$ and $$E(X_7)= P(X_7 = 1)= {11over 12}cdot 0 = 0$$



                so $$E(X) = E(X_1)+E(X_2)+...+E(X_7) =6cdot {1over 12}cdot {11over 12} = {11over 24} $$






                share|cite|improve this answer











                $endgroup$



                Let $X_i$ be indicator variable for $i$-th event, so $X=X_1+...+X_7$. Then , for $ileq 6$ we have $$E(X_i)=P(X_i=1) = {11over 12}cdot {1over 12} $$ and $$E(X_7)= P(X_7 = 1)= {11over 12}cdot 0 = 0$$



                so $$E(X) = E(X_1)+E(X_2)+...+E(X_7) =6cdot {1over 12}cdot {11over 12} = {11over 24} $$







                share|cite|improve this answer














                share|cite|improve this answer



                share|cite|improve this answer








                edited Dec 1 '18 at 6:27

























                answered Dec 1 '18 at 6:22









                greedoidgreedoid

                42.2k1152105




                42.2k1152105






























                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3021042%2fexpected-value-use-indicator-variables-and-random-variables%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

                    How to send String Array data to Server using php in android

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Is anime1.com a legal site for watching anime?