3 or more empty seats in a row of n seats and m occupied seats? The Next CEO of Stack...

How to find image of a complex function with given constraints?

IC has pull-down resistors on SMBus lines?

Is there a difference between "Fahrstuhl" and "Aufzug"?

Yu-Gi-Oh cards in Python 3

Does the Idaho Potato Commission associate potato skins with healthy eating?

How to avoid supervisors with prejudiced views?

Do scriptures give a method to recognize a truly self-realized person/jivanmukta?

Why is information "lost" when it got into a black hole?

Physiological effects of huge anime eyes

What day is it again?

Is fine stranded wire ok for main supply line?

TikZ: How to fill area with a special pattern?

Can Sneak Attack be used when hitting with an improvised weapon?

How to Implement Deterministic Encryption Safely in .NET

Is it professional to write unrelated content in an almost-empty email?

Does Germany produce more waste than the US?

Reference request: Grassmannian and Plucker coordinates in type B, C, D

Why did early computer designers eschew integers?

Where do students learn to solve polynomial equations these days?

Airplane gently rocking its wings during whole flight

Help! I cannot understand this game’s notations!

How did Beeri the Hittite come up with naming his daughter Yehudit?

how one can write a nice vector parser, something that does pgfvecparse{A=B-C; D=E x F;}

Is it okay to majorly distort historical facts while writing a fiction story?



3 or more empty seats in a row of n seats and m occupied seats?



The Next CEO of Stack OverflowSeating without leaving gapsCombinatorics Homework Problem: $n$ People Sit Down. What is the Probability that $m$ Seats are Occupied?Probability of adjacent seatingCombination math. I'm stumped. GMAT related.Taking Seats on a Plane: The General CaseProbablity that 3 husbands sit next to their wives round a circular tableConditional probability with students seatingIf 4 people are seated randomly in a row of 8 seats, what is the probability that no 2 persons will sit on adjacent seats?Number of ways in which $4$ people can be selected out of $10$ people sitting in a row such that exactly two are consecutiveAllocation of seats to the student(P&C-Probability)












0












$begingroup$


we have a row of $n$ seats and $m$ are already randomly occupied.
You select an empty seat.
What is the probability that your $2$ friends coming afterwards will sit next to you? i.e. there are either $2$ empty seats on your left or $2$ on your right or you are in the middle of $2$ empty seats.



we know that all possible compilations for are $binom{n}{m}$.
I think the question is what is the possibility i selected the negative event i.e. a seat with no free seat next to it or a seat with only one empty seat next to me.
The question is how to calculate these probabilities?



I follow completely your new hint but still I cannot see how to calculate these 2 probabilities!!










share|cite|improve this question











$endgroup$












  • $begingroup$
    Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close without reading the comments.
    $endgroup$
    – saulspatz
    Mar 17 at 16:59
















0












$begingroup$


we have a row of $n$ seats and $m$ are already randomly occupied.
You select an empty seat.
What is the probability that your $2$ friends coming afterwards will sit next to you? i.e. there are either $2$ empty seats on your left or $2$ on your right or you are in the middle of $2$ empty seats.



we know that all possible compilations for are $binom{n}{m}$.
I think the question is what is the possibility i selected the negative event i.e. a seat with no free seat next to it or a seat with only one empty seat next to me.
The question is how to calculate these probabilities?



I follow completely your new hint but still I cannot see how to calculate these 2 probabilities!!










share|cite|improve this question











$endgroup$












  • $begingroup$
    Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close without reading the comments.
    $endgroup$
    – saulspatz
    Mar 17 at 16:59














0












0








0





$begingroup$


we have a row of $n$ seats and $m$ are already randomly occupied.
You select an empty seat.
What is the probability that your $2$ friends coming afterwards will sit next to you? i.e. there are either $2$ empty seats on your left or $2$ on your right or you are in the middle of $2$ empty seats.



we know that all possible compilations for are $binom{n}{m}$.
I think the question is what is the possibility i selected the negative event i.e. a seat with no free seat next to it or a seat with only one empty seat next to me.
The question is how to calculate these probabilities?



I follow completely your new hint but still I cannot see how to calculate these 2 probabilities!!










share|cite|improve this question











$endgroup$




we have a row of $n$ seats and $m$ are already randomly occupied.
You select an empty seat.
What is the probability that your $2$ friends coming afterwards will sit next to you? i.e. there are either $2$ empty seats on your left or $2$ on your right or you are in the middle of $2$ empty seats.



we know that all possible compilations for are $binom{n}{m}$.
I think the question is what is the possibility i selected the negative event i.e. a seat with no free seat next to it or a seat with only one empty seat next to me.
The question is how to calculate these probabilities?



I follow completely your new hint but still I cannot see how to calculate these 2 probabilities!!







combinatorics combinations






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 17 at 20:43







Maria Gargana

















asked Mar 17 at 16:52









Maria GarganaMaria Gargana

12




12












  • $begingroup$
    Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close without reading the comments.
    $endgroup$
    – saulspatz
    Mar 17 at 16:59


















  • $begingroup$
    Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close without reading the comments.
    $endgroup$
    – saulspatz
    Mar 17 at 16:59
















$begingroup$
Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close without reading the comments.
$endgroup$
– saulspatz
Mar 17 at 16:59




$begingroup$
Welcome to MSE. You'll get a lot more help, and fewer votes to close, if you show that you have made a real effort to solve the problem yourself. What are your thoughts? What have you tried? How far did you get? Where are you stuck? This question is likely to be closed if you don't add more context. Please respond by editing the question body. Many people browsing questions will vote to close without reading the comments.
$endgroup$
– saulspatz
Mar 17 at 16:59










1 Answer
1






active

oldest

votes


















2












$begingroup$

Hint:



Compare and contrast the differences between the problems where




  • You pick a seat first and then the $m$ other people select their seats


  • The $m$ other people select their seats first and then you select your seat





Extended hint: (since it apparently wasn't enough)



Notice that the problem descriptions where you get your seat first and then the other $m$ people get their seats is identical to the problem where the $m$ people get their seats before you. There is a clear bijection between the outcomes described in each scenario. However, it is a much easier problem to approach when thought of from the perspective where you get your seat first.



So, take your seat first. Now, the question becomes, what is the probability that the other $m$ people will choose their seats in such a way that they leave at least two spaces near you open. Alternatively, as you correctly noted, this could be approached by looking instead at the complementary event, that exactly zero or exactly one neighboring seat is left unoccupied. If we were to do it directly, you might want to use inclusion-exclusion. At a glance, it appears that approaching from the complementary perspective will be easier, so continue that way.



Now, finally before continuing with any actual calculations, recognize that the position you sit will impact things quite a bit, so condition on and break into cases based on whether you:




  • Sit on an edge

  • Sit next to an edge

  • Sit in the middle with at least two seats in either direction


Now, find the probabilities that after you sit and the $m$ other people are choosing their seats that:




  • exactly zero seats near you are left open

  • exactly one seat near you is left open




Final hint:



In general, if you have $N$ objects, $K$ of which are of one type and $N-K$ of which are of another type, if we select $n$ of these objects without replacement the probability that we have selected exactly $k$ of the objects of the first type is going to be:



$$frac{binom{K}{k}binom{N-K}{n-k}}{binom{N}{n}}$$



This is the hypergeometric distribution. A more generalized form of the distrubtion with more categories of objects exists as well called the multivariate-hypergeometric distribution.



Now, relate this to our problem with chairs and let "nearby seats" be the objects of the first type and faraway chairs be objects of the second type.





Solution: (I strongly discourage looking until trying to give my previous hints a chance, but hover over to see)



The following assumes that $ngeq 5$. The cases for $nleq 4$ can be handled manually very quickly by hand.




In the first case where we sit next to an edge, this will occur with probability $frac{2}{n}$. Given that this has happened, we ask what the probability is that among the chairs selected by our $m$ people, we either have exactly zero open seats nearby (in which case the adjacent seat to us is taken) or we have exactly one open seat nearby (in which case the adjacent seat to us is not taken but the seat adjacent to that is taken). To find these probabilities, count how many seats are now "restricted" either because we are sitting in it, we are requiring the seat to be unoccupied by the $m$ people, or we are requiring the seat be occupied by one of the $m$ people. Once having forced those conditions to be met, we count how many ways we can seat the remaining of the $m$ people. We divide by $binom{n-1}{m}$ as there are that many ways to have seated the $m$ people. The first occurs with probability $dfrac{binom{n-2}{m-1}}{binom{n-1}{m}}$. The second occurs with probability $dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}$. This case contributes then $dfrac{2}{n}left(dfrac{binom{n-2}{m-1}}{binom{n-1}{m}} + dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}right)$ to the overall probability of failure.




$~$




Continuing, for the next case where we sit one seat away from the edge, for zero open seats this occurs with probability $dfrac{2}{n}$ we need both the seat to our left and the seat to our right be occupied. For exactly one seat nearby being unoccupied, this either requires the seat in the direction of the edge to be unoccupied and the seat towards the middle to be occupied, or the seat towards the edge to be occupied, the seat to the middle to be unoccupied and the beyond that to be occupied. This contributes a total of $dfrac{2}{n}left(dfrac{binom{n-3}{m-2} + binom{n-3}{m-1}+binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the chance of failure.




$~$




Finally the case of if it is in the middle, this occurs with probability $frac{n-4}{n}$. The breakdown of cases is similar to before. This contributes a total of $dfrac{n-4}{n}left(dfrac{binom{n-3}{m-2}+2binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the probability of failure.




$~$




For the final answer to the originally asked question, you subtract each of the expressions found in the three cases away from $1$.







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%2f3151760%2f3-or-more-empty-seats-in-a-row-of-n-seats-and-m-occupied-seats%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$

    Hint:



    Compare and contrast the differences between the problems where




    • You pick a seat first and then the $m$ other people select their seats


    • The $m$ other people select their seats first and then you select your seat





    Extended hint: (since it apparently wasn't enough)



    Notice that the problem descriptions where you get your seat first and then the other $m$ people get their seats is identical to the problem where the $m$ people get their seats before you. There is a clear bijection between the outcomes described in each scenario. However, it is a much easier problem to approach when thought of from the perspective where you get your seat first.



    So, take your seat first. Now, the question becomes, what is the probability that the other $m$ people will choose their seats in such a way that they leave at least two spaces near you open. Alternatively, as you correctly noted, this could be approached by looking instead at the complementary event, that exactly zero or exactly one neighboring seat is left unoccupied. If we were to do it directly, you might want to use inclusion-exclusion. At a glance, it appears that approaching from the complementary perspective will be easier, so continue that way.



    Now, finally before continuing with any actual calculations, recognize that the position you sit will impact things quite a bit, so condition on and break into cases based on whether you:




    • Sit on an edge

    • Sit next to an edge

    • Sit in the middle with at least two seats in either direction


    Now, find the probabilities that after you sit and the $m$ other people are choosing their seats that:




    • exactly zero seats near you are left open

    • exactly one seat near you is left open




    Final hint:



    In general, if you have $N$ objects, $K$ of which are of one type and $N-K$ of which are of another type, if we select $n$ of these objects without replacement the probability that we have selected exactly $k$ of the objects of the first type is going to be:



    $$frac{binom{K}{k}binom{N-K}{n-k}}{binom{N}{n}}$$



    This is the hypergeometric distribution. A more generalized form of the distrubtion with more categories of objects exists as well called the multivariate-hypergeometric distribution.



    Now, relate this to our problem with chairs and let "nearby seats" be the objects of the first type and faraway chairs be objects of the second type.





    Solution: (I strongly discourage looking until trying to give my previous hints a chance, but hover over to see)



    The following assumes that $ngeq 5$. The cases for $nleq 4$ can be handled manually very quickly by hand.




    In the first case where we sit next to an edge, this will occur with probability $frac{2}{n}$. Given that this has happened, we ask what the probability is that among the chairs selected by our $m$ people, we either have exactly zero open seats nearby (in which case the adjacent seat to us is taken) or we have exactly one open seat nearby (in which case the adjacent seat to us is not taken but the seat adjacent to that is taken). To find these probabilities, count how many seats are now "restricted" either because we are sitting in it, we are requiring the seat to be unoccupied by the $m$ people, or we are requiring the seat be occupied by one of the $m$ people. Once having forced those conditions to be met, we count how many ways we can seat the remaining of the $m$ people. We divide by $binom{n-1}{m}$ as there are that many ways to have seated the $m$ people. The first occurs with probability $dfrac{binom{n-2}{m-1}}{binom{n-1}{m}}$. The second occurs with probability $dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}$. This case contributes then $dfrac{2}{n}left(dfrac{binom{n-2}{m-1}}{binom{n-1}{m}} + dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}right)$ to the overall probability of failure.




    $~$




    Continuing, for the next case where we sit one seat away from the edge, for zero open seats this occurs with probability $dfrac{2}{n}$ we need both the seat to our left and the seat to our right be occupied. For exactly one seat nearby being unoccupied, this either requires the seat in the direction of the edge to be unoccupied and the seat towards the middle to be occupied, or the seat towards the edge to be occupied, the seat to the middle to be unoccupied and the beyond that to be occupied. This contributes a total of $dfrac{2}{n}left(dfrac{binom{n-3}{m-2} + binom{n-3}{m-1}+binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the chance of failure.




    $~$




    Finally the case of if it is in the middle, this occurs with probability $frac{n-4}{n}$. The breakdown of cases is similar to before. This contributes a total of $dfrac{n-4}{n}left(dfrac{binom{n-3}{m-2}+2binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the probability of failure.




    $~$




    For the final answer to the originally asked question, you subtract each of the expressions found in the three cases away from $1$.







    share|cite|improve this answer











    $endgroup$


















      2












      $begingroup$

      Hint:



      Compare and contrast the differences between the problems where




      • You pick a seat first and then the $m$ other people select their seats


      • The $m$ other people select their seats first and then you select your seat





      Extended hint: (since it apparently wasn't enough)



      Notice that the problem descriptions where you get your seat first and then the other $m$ people get their seats is identical to the problem where the $m$ people get their seats before you. There is a clear bijection between the outcomes described in each scenario. However, it is a much easier problem to approach when thought of from the perspective where you get your seat first.



      So, take your seat first. Now, the question becomes, what is the probability that the other $m$ people will choose their seats in such a way that they leave at least two spaces near you open. Alternatively, as you correctly noted, this could be approached by looking instead at the complementary event, that exactly zero or exactly one neighboring seat is left unoccupied. If we were to do it directly, you might want to use inclusion-exclusion. At a glance, it appears that approaching from the complementary perspective will be easier, so continue that way.



      Now, finally before continuing with any actual calculations, recognize that the position you sit will impact things quite a bit, so condition on and break into cases based on whether you:




      • Sit on an edge

      • Sit next to an edge

      • Sit in the middle with at least two seats in either direction


      Now, find the probabilities that after you sit and the $m$ other people are choosing their seats that:




      • exactly zero seats near you are left open

      • exactly one seat near you is left open




      Final hint:



      In general, if you have $N$ objects, $K$ of which are of one type and $N-K$ of which are of another type, if we select $n$ of these objects without replacement the probability that we have selected exactly $k$ of the objects of the first type is going to be:



      $$frac{binom{K}{k}binom{N-K}{n-k}}{binom{N}{n}}$$



      This is the hypergeometric distribution. A more generalized form of the distrubtion with more categories of objects exists as well called the multivariate-hypergeometric distribution.



      Now, relate this to our problem with chairs and let "nearby seats" be the objects of the first type and faraway chairs be objects of the second type.





      Solution: (I strongly discourage looking until trying to give my previous hints a chance, but hover over to see)



      The following assumes that $ngeq 5$. The cases for $nleq 4$ can be handled manually very quickly by hand.




      In the first case where we sit next to an edge, this will occur with probability $frac{2}{n}$. Given that this has happened, we ask what the probability is that among the chairs selected by our $m$ people, we either have exactly zero open seats nearby (in which case the adjacent seat to us is taken) or we have exactly one open seat nearby (in which case the adjacent seat to us is not taken but the seat adjacent to that is taken). To find these probabilities, count how many seats are now "restricted" either because we are sitting in it, we are requiring the seat to be unoccupied by the $m$ people, or we are requiring the seat be occupied by one of the $m$ people. Once having forced those conditions to be met, we count how many ways we can seat the remaining of the $m$ people. We divide by $binom{n-1}{m}$ as there are that many ways to have seated the $m$ people. The first occurs with probability $dfrac{binom{n-2}{m-1}}{binom{n-1}{m}}$. The second occurs with probability $dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}$. This case contributes then $dfrac{2}{n}left(dfrac{binom{n-2}{m-1}}{binom{n-1}{m}} + dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}right)$ to the overall probability of failure.




      $~$




      Continuing, for the next case where we sit one seat away from the edge, for zero open seats this occurs with probability $dfrac{2}{n}$ we need both the seat to our left and the seat to our right be occupied. For exactly one seat nearby being unoccupied, this either requires the seat in the direction of the edge to be unoccupied and the seat towards the middle to be occupied, or the seat towards the edge to be occupied, the seat to the middle to be unoccupied and the beyond that to be occupied. This contributes a total of $dfrac{2}{n}left(dfrac{binom{n-3}{m-2} + binom{n-3}{m-1}+binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the chance of failure.




      $~$




      Finally the case of if it is in the middle, this occurs with probability $frac{n-4}{n}$. The breakdown of cases is similar to before. This contributes a total of $dfrac{n-4}{n}left(dfrac{binom{n-3}{m-2}+2binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the probability of failure.




      $~$




      For the final answer to the originally asked question, you subtract each of the expressions found in the three cases away from $1$.







      share|cite|improve this answer











      $endgroup$
















        2












        2








        2





        $begingroup$

        Hint:



        Compare and contrast the differences between the problems where




        • You pick a seat first and then the $m$ other people select their seats


        • The $m$ other people select their seats first and then you select your seat





        Extended hint: (since it apparently wasn't enough)



        Notice that the problem descriptions where you get your seat first and then the other $m$ people get their seats is identical to the problem where the $m$ people get their seats before you. There is a clear bijection between the outcomes described in each scenario. However, it is a much easier problem to approach when thought of from the perspective where you get your seat first.



        So, take your seat first. Now, the question becomes, what is the probability that the other $m$ people will choose their seats in such a way that they leave at least two spaces near you open. Alternatively, as you correctly noted, this could be approached by looking instead at the complementary event, that exactly zero or exactly one neighboring seat is left unoccupied. If we were to do it directly, you might want to use inclusion-exclusion. At a glance, it appears that approaching from the complementary perspective will be easier, so continue that way.



        Now, finally before continuing with any actual calculations, recognize that the position you sit will impact things quite a bit, so condition on and break into cases based on whether you:




        • Sit on an edge

        • Sit next to an edge

        • Sit in the middle with at least two seats in either direction


        Now, find the probabilities that after you sit and the $m$ other people are choosing their seats that:




        • exactly zero seats near you are left open

        • exactly one seat near you is left open




        Final hint:



        In general, if you have $N$ objects, $K$ of which are of one type and $N-K$ of which are of another type, if we select $n$ of these objects without replacement the probability that we have selected exactly $k$ of the objects of the first type is going to be:



        $$frac{binom{K}{k}binom{N-K}{n-k}}{binom{N}{n}}$$



        This is the hypergeometric distribution. A more generalized form of the distrubtion with more categories of objects exists as well called the multivariate-hypergeometric distribution.



        Now, relate this to our problem with chairs and let "nearby seats" be the objects of the first type and faraway chairs be objects of the second type.





        Solution: (I strongly discourage looking until trying to give my previous hints a chance, but hover over to see)



        The following assumes that $ngeq 5$. The cases for $nleq 4$ can be handled manually very quickly by hand.




        In the first case where we sit next to an edge, this will occur with probability $frac{2}{n}$. Given that this has happened, we ask what the probability is that among the chairs selected by our $m$ people, we either have exactly zero open seats nearby (in which case the adjacent seat to us is taken) or we have exactly one open seat nearby (in which case the adjacent seat to us is not taken but the seat adjacent to that is taken). To find these probabilities, count how many seats are now "restricted" either because we are sitting in it, we are requiring the seat to be unoccupied by the $m$ people, or we are requiring the seat be occupied by one of the $m$ people. Once having forced those conditions to be met, we count how many ways we can seat the remaining of the $m$ people. We divide by $binom{n-1}{m}$ as there are that many ways to have seated the $m$ people. The first occurs with probability $dfrac{binom{n-2}{m-1}}{binom{n-1}{m}}$. The second occurs with probability $dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}$. This case contributes then $dfrac{2}{n}left(dfrac{binom{n-2}{m-1}}{binom{n-1}{m}} + dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}right)$ to the overall probability of failure.




        $~$




        Continuing, for the next case where we sit one seat away from the edge, for zero open seats this occurs with probability $dfrac{2}{n}$ we need both the seat to our left and the seat to our right be occupied. For exactly one seat nearby being unoccupied, this either requires the seat in the direction of the edge to be unoccupied and the seat towards the middle to be occupied, or the seat towards the edge to be occupied, the seat to the middle to be unoccupied and the beyond that to be occupied. This contributes a total of $dfrac{2}{n}left(dfrac{binom{n-3}{m-2} + binom{n-3}{m-1}+binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the chance of failure.




        $~$




        Finally the case of if it is in the middle, this occurs with probability $frac{n-4}{n}$. The breakdown of cases is similar to before. This contributes a total of $dfrac{n-4}{n}left(dfrac{binom{n-3}{m-2}+2binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the probability of failure.




        $~$




        For the final answer to the originally asked question, you subtract each of the expressions found in the three cases away from $1$.







        share|cite|improve this answer











        $endgroup$



        Hint:



        Compare and contrast the differences between the problems where




        • You pick a seat first and then the $m$ other people select their seats


        • The $m$ other people select their seats first and then you select your seat





        Extended hint: (since it apparently wasn't enough)



        Notice that the problem descriptions where you get your seat first and then the other $m$ people get their seats is identical to the problem where the $m$ people get their seats before you. There is a clear bijection between the outcomes described in each scenario. However, it is a much easier problem to approach when thought of from the perspective where you get your seat first.



        So, take your seat first. Now, the question becomes, what is the probability that the other $m$ people will choose their seats in such a way that they leave at least two spaces near you open. Alternatively, as you correctly noted, this could be approached by looking instead at the complementary event, that exactly zero or exactly one neighboring seat is left unoccupied. If we were to do it directly, you might want to use inclusion-exclusion. At a glance, it appears that approaching from the complementary perspective will be easier, so continue that way.



        Now, finally before continuing with any actual calculations, recognize that the position you sit will impact things quite a bit, so condition on and break into cases based on whether you:




        • Sit on an edge

        • Sit next to an edge

        • Sit in the middle with at least two seats in either direction


        Now, find the probabilities that after you sit and the $m$ other people are choosing their seats that:




        • exactly zero seats near you are left open

        • exactly one seat near you is left open




        Final hint:



        In general, if you have $N$ objects, $K$ of which are of one type and $N-K$ of which are of another type, if we select $n$ of these objects without replacement the probability that we have selected exactly $k$ of the objects of the first type is going to be:



        $$frac{binom{K}{k}binom{N-K}{n-k}}{binom{N}{n}}$$



        This is the hypergeometric distribution. A more generalized form of the distrubtion with more categories of objects exists as well called the multivariate-hypergeometric distribution.



        Now, relate this to our problem with chairs and let "nearby seats" be the objects of the first type and faraway chairs be objects of the second type.





        Solution: (I strongly discourage looking until trying to give my previous hints a chance, but hover over to see)



        The following assumes that $ngeq 5$. The cases for $nleq 4$ can be handled manually very quickly by hand.




        In the first case where we sit next to an edge, this will occur with probability $frac{2}{n}$. Given that this has happened, we ask what the probability is that among the chairs selected by our $m$ people, we either have exactly zero open seats nearby (in which case the adjacent seat to us is taken) or we have exactly one open seat nearby (in which case the adjacent seat to us is not taken but the seat adjacent to that is taken). To find these probabilities, count how many seats are now "restricted" either because we are sitting in it, we are requiring the seat to be unoccupied by the $m$ people, or we are requiring the seat be occupied by one of the $m$ people. Once having forced those conditions to be met, we count how many ways we can seat the remaining of the $m$ people. We divide by $binom{n-1}{m}$ as there are that many ways to have seated the $m$ people. The first occurs with probability $dfrac{binom{n-2}{m-1}}{binom{n-1}{m}}$. The second occurs with probability $dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}$. This case contributes then $dfrac{2}{n}left(dfrac{binom{n-2}{m-1}}{binom{n-1}{m}} + dfrac{binom{n-3}{m-1}}{binom{n-1}{m}}right)$ to the overall probability of failure.




        $~$




        Continuing, for the next case where we sit one seat away from the edge, for zero open seats this occurs with probability $dfrac{2}{n}$ we need both the seat to our left and the seat to our right be occupied. For exactly one seat nearby being unoccupied, this either requires the seat in the direction of the edge to be unoccupied and the seat towards the middle to be occupied, or the seat towards the edge to be occupied, the seat to the middle to be unoccupied and the beyond that to be occupied. This contributes a total of $dfrac{2}{n}left(dfrac{binom{n-3}{m-2} + binom{n-3}{m-1}+binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the chance of failure.




        $~$




        Finally the case of if it is in the middle, this occurs with probability $frac{n-4}{n}$. The breakdown of cases is similar to before. This contributes a total of $dfrac{n-4}{n}left(dfrac{binom{n-3}{m-2}+2binom{n-4}{m-2}}{binom{n-1}{m}}right)$ to the probability of failure.




        $~$




        For the final answer to the originally asked question, you subtract each of the expressions found in the three cases away from $1$.








        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Mar 17 at 23:01

























        answered Mar 17 at 16:59









        JMoravitzJMoravitz

        48.7k43988




        48.7k43988






























            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%2f3151760%2f3-or-more-empty-seats-in-a-row-of-n-seats-and-m-occupied-seats%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

            Nidaros erkebispedøme

            Birsay

            Was Woodrow Wilson really a Liberal?Was World War I a war of liberals against authoritarians?Founding Fathers...