A Problem dealing with the Binomial Distribution

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











up vote
1
down vote

favorite












Below is my solution to a problem from a text book. I do not have confidence that my solution is right. I feel like I am missing something. Am I?

Thanks,

Bob

Problem:

An airline finds that $5$ percent of the persons making reservations on a
certain flight will not show up for that flight. If the airline sells $160$
seats tickets for a fight with only $155$ seats, what is the probability
that a seat will be available for every person holding a reservation and planning on flying.

Answer:

First realize that we have a binomial distribution with $n = 160$, $p = 0.95$
and $q = 0.05$. We are going to approximate that with a normal distribution.
begineqnarray*
u &=& np = 160(0.95) = 152 \
sigma^2 &=& npq = 0.95(0.05)(160) =7.6 \
sigma &=& 2.75681 \
endeqnarray*
Observe that $155$ is $1.08821$ standard deviations above the mean. We then run the following command in R: pnorm(1.08821) and got $0.8617488$. We
conclude the probability that all the passengers will have seats is
$0.8617488$. The book gets $0.8980$. We will now do the problem again using
Yates's correction.

This time we ask what is the probability that we have $155.5$ passengers or less.
Now we are $1.26991$ standard deviations above the mean. We then run the following command in R: pnorm(1.26991) and got $0.0.89794$ which matches the answer in the book.







share|cite|improve this question
















  • 1




    Apart from using an approximation when it was unnecessary (the exact answer can be found with relatively low effort) and when using the approximation not immediately using "Yate's Correction" from the beginning, your answer is acceptable. Arguably, an approximation using the normal distribution however is not appropriate due to the small numbers involved.
    – JMoravitz
    Aug 11 at 22:31







  • 1




    The exact answer can be calculated as such and is closer to $0.90614607dots$. This could even done by hand with a pocket calculator running the sum from the other direction and subtracting away from one as such.
    – JMoravitz
    Aug 11 at 22:37







  • 1




    Unexplained down-votes nothwithstanding, Answer by @KeyFlex is a reasonable attempt to verify the work OP is asking about.
    – BruceET
    Aug 11 at 23:56














up vote
1
down vote

favorite












Below is my solution to a problem from a text book. I do not have confidence that my solution is right. I feel like I am missing something. Am I?

Thanks,

Bob

Problem:

An airline finds that $5$ percent of the persons making reservations on a
certain flight will not show up for that flight. If the airline sells $160$
seats tickets for a fight with only $155$ seats, what is the probability
that a seat will be available for every person holding a reservation and planning on flying.

Answer:

First realize that we have a binomial distribution with $n = 160$, $p = 0.95$
and $q = 0.05$. We are going to approximate that with a normal distribution.
begineqnarray*
u &=& np = 160(0.95) = 152 \
sigma^2 &=& npq = 0.95(0.05)(160) =7.6 \
sigma &=& 2.75681 \
endeqnarray*
Observe that $155$ is $1.08821$ standard deviations above the mean. We then run the following command in R: pnorm(1.08821) and got $0.8617488$. We
conclude the probability that all the passengers will have seats is
$0.8617488$. The book gets $0.8980$. We will now do the problem again using
Yates's correction.

This time we ask what is the probability that we have $155.5$ passengers or less.
Now we are $1.26991$ standard deviations above the mean. We then run the following command in R: pnorm(1.26991) and got $0.0.89794$ which matches the answer in the book.







share|cite|improve this question
















  • 1




    Apart from using an approximation when it was unnecessary (the exact answer can be found with relatively low effort) and when using the approximation not immediately using "Yate's Correction" from the beginning, your answer is acceptable. Arguably, an approximation using the normal distribution however is not appropriate due to the small numbers involved.
    – JMoravitz
    Aug 11 at 22:31







  • 1




    The exact answer can be calculated as such and is closer to $0.90614607dots$. This could even done by hand with a pocket calculator running the sum from the other direction and subtracting away from one as such.
    – JMoravitz
    Aug 11 at 22:37







  • 1




    Unexplained down-votes nothwithstanding, Answer by @KeyFlex is a reasonable attempt to verify the work OP is asking about.
    – BruceET
    Aug 11 at 23:56












up vote
1
down vote

favorite









up vote
1
down vote

favorite











Below is my solution to a problem from a text book. I do not have confidence that my solution is right. I feel like I am missing something. Am I?

Thanks,

Bob

Problem:

An airline finds that $5$ percent of the persons making reservations on a
certain flight will not show up for that flight. If the airline sells $160$
seats tickets for a fight with only $155$ seats, what is the probability
that a seat will be available for every person holding a reservation and planning on flying.

Answer:

First realize that we have a binomial distribution with $n = 160$, $p = 0.95$
and $q = 0.05$. We are going to approximate that with a normal distribution.
begineqnarray*
u &=& np = 160(0.95) = 152 \
sigma^2 &=& npq = 0.95(0.05)(160) =7.6 \
sigma &=& 2.75681 \
endeqnarray*
Observe that $155$ is $1.08821$ standard deviations above the mean. We then run the following command in R: pnorm(1.08821) and got $0.8617488$. We
conclude the probability that all the passengers will have seats is
$0.8617488$. The book gets $0.8980$. We will now do the problem again using
Yates's correction.

This time we ask what is the probability that we have $155.5$ passengers or less.
Now we are $1.26991$ standard deviations above the mean. We then run the following command in R: pnorm(1.26991) and got $0.0.89794$ which matches the answer in the book.







share|cite|improve this question












Below is my solution to a problem from a text book. I do not have confidence that my solution is right. I feel like I am missing something. Am I?

Thanks,

Bob

Problem:

An airline finds that $5$ percent of the persons making reservations on a
certain flight will not show up for that flight. If the airline sells $160$
seats tickets for a fight with only $155$ seats, what is the probability
that a seat will be available for every person holding a reservation and planning on flying.

Answer:

First realize that we have a binomial distribution with $n = 160$, $p = 0.95$
and $q = 0.05$. We are going to approximate that with a normal distribution.
begineqnarray*
u &=& np = 160(0.95) = 152 \
sigma^2 &=& npq = 0.95(0.05)(160) =7.6 \
sigma &=& 2.75681 \
endeqnarray*
Observe that $155$ is $1.08821$ standard deviations above the mean. We then run the following command in R: pnorm(1.08821) and got $0.8617488$. We
conclude the probability that all the passengers will have seats is
$0.8617488$. The book gets $0.8980$. We will now do the problem again using
Yates's correction.

This time we ask what is the probability that we have $155.5$ passengers or less.
Now we are $1.26991$ standard deviations above the mean. We then run the following command in R: pnorm(1.26991) and got $0.0.89794$ which matches the answer in the book.









share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Aug 11 at 22:22









Bob

737411




737411







  • 1




    Apart from using an approximation when it was unnecessary (the exact answer can be found with relatively low effort) and when using the approximation not immediately using "Yate's Correction" from the beginning, your answer is acceptable. Arguably, an approximation using the normal distribution however is not appropriate due to the small numbers involved.
    – JMoravitz
    Aug 11 at 22:31







  • 1




    The exact answer can be calculated as such and is closer to $0.90614607dots$. This could even done by hand with a pocket calculator running the sum from the other direction and subtracting away from one as such.
    – JMoravitz
    Aug 11 at 22:37







  • 1




    Unexplained down-votes nothwithstanding, Answer by @KeyFlex is a reasonable attempt to verify the work OP is asking about.
    – BruceET
    Aug 11 at 23:56












  • 1




    Apart from using an approximation when it was unnecessary (the exact answer can be found with relatively low effort) and when using the approximation not immediately using "Yate's Correction" from the beginning, your answer is acceptable. Arguably, an approximation using the normal distribution however is not appropriate due to the small numbers involved.
    – JMoravitz
    Aug 11 at 22:31







  • 1




    The exact answer can be calculated as such and is closer to $0.90614607dots$. This could even done by hand with a pocket calculator running the sum from the other direction and subtracting away from one as such.
    – JMoravitz
    Aug 11 at 22:37







  • 1




    Unexplained down-votes nothwithstanding, Answer by @KeyFlex is a reasonable attempt to verify the work OP is asking about.
    – BruceET
    Aug 11 at 23:56







1




1




Apart from using an approximation when it was unnecessary (the exact answer can be found with relatively low effort) and when using the approximation not immediately using "Yate's Correction" from the beginning, your answer is acceptable. Arguably, an approximation using the normal distribution however is not appropriate due to the small numbers involved.
– JMoravitz
Aug 11 at 22:31





Apart from using an approximation when it was unnecessary (the exact answer can be found with relatively low effort) and when using the approximation not immediately using "Yate's Correction" from the beginning, your answer is acceptable. Arguably, an approximation using the normal distribution however is not appropriate due to the small numbers involved.
– JMoravitz
Aug 11 at 22:31





1




1




The exact answer can be calculated as such and is closer to $0.90614607dots$. This could even done by hand with a pocket calculator running the sum from the other direction and subtracting away from one as such.
– JMoravitz
Aug 11 at 22:37





The exact answer can be calculated as such and is closer to $0.90614607dots$. This could even done by hand with a pocket calculator running the sum from the other direction and subtracting away from one as such.
– JMoravitz
Aug 11 at 22:37





1




1




Unexplained down-votes nothwithstanding, Answer by @KeyFlex is a reasonable attempt to verify the work OP is asking about.
– BruceET
Aug 11 at 23:56




Unexplained down-votes nothwithstanding, Answer by @KeyFlex is a reasonable attempt to verify the work OP is asking about.
– BruceET
Aug 11 at 23:56










2 Answers
2






active

oldest

votes

















up vote
2
down vote



accepted










There is a precise answer, you do not need to estimate. Note that using normal distribution instead of the binomial one is an approximation which is very accurate under some conditions, of course, but still, not better that the precise answer.
Although the problem did not state this, I guess we may assume that customers decide to show up or not independently from each other. This is not realistic: if I book a flight with my wife for our honeymoon, then we both show up or we both don't, normally. Anyway, without the independence assumption, we have nothing.



So as you correctly put, $p=0.95$, $n=160$, and then the number $X$ of people showing up has distribution $Xsim Binom(160, 0.95)$.



The question is $P(nleq 155)$.
To simplify the calculation, we should compute the complement probability: $P(n> 155)= P(n=156) + P(n=157) + P(n=158) + P(n=159) + P(n=160)= binom160156cdot 0.95^156cdot 0.05^4 + binom160157cdot 0.95^157cdot 0.05^3 + binom160158cdot 0.95^158cdot 0.05^2 + binom160159cdot 0.95^159cdot 0.05^1 + binom160160cdot 0.95^160cdot 0.05^0$.






share|cite|improve this answer






















  • If I had a dime for every time I made this stupid mistake... Thanks a lot, fixed.
    – A. Pongrácz
    Aug 11 at 22:43






  • 1




    In addition to the independence assumption, we also tacitly assume that the airline has a "large number of persons who regularly book flights" which allows us to model this as sampling with replacement. If our airline only operates in the middle of nowheresville with population 160, then we would be sampling without replacement and we would have had exactly eight people not showing up for the flight.
    – JMoravitz
    Aug 11 at 22:49

















up vote
0
down vote













Let's try this using standard notation:
The number of people who show for the flight is
$X sim mathsfBinom(n = 160, p = .95).$



Thus, on average, the number who show is
$$mu = E(X) = np = 160(0.95) = 152.$$ So if the
average number always show up, there will always
be room for everyone.



However, the number actually
showing up for any one flight is variable: specifically,
$sigma^2 = Var(X) = np(1-p) = 7.68$ and
$$sigma = SD(X) = sqrtnp(1-p) = 2.75681.$$
Roughly speaking, it isn't unlikely for a binomial
random variable to be as much as $2sigma$ on either
side of the mean. So the number of people actually showing for a particular flight might be between 146 and 175, which means sometimes 155 seats won't be enough
to accommodate everyone who shows.



The exact probability that everyone showing gets a
seat is $P(X le 155) = 0.9061.$ This probability can
be computed exactly: using the PDF formula for the binomial distribution (as shown by @APongracz), or using software (as commented by @JMoravitz)--either a statistical calculator or
software program such as R. (The result from R is shown below.)



pbinom(155, 160, .95)
## 0.9061461


The answer can also be approximated using the normal distribution $mathsfNorm(mu = 152, sigma = 2.7568).$ This can be done directly in software or by standardizing and using printed normal tables. (Roughly as in the deleted answer; using normal tables may require some rounding and thus give a slightly different answer.)



pnorm(155.5, 152, 2.75681)
## 0.8978835


By any of the methods, the probability of being able to accommodate everyone who shows is about 0.90.$ (On about 10% of these flights there might be announcements asking if some people with reservations are willing to take the next flight in exchange for some sort of 'bribe'.)



In the figure below, the exact binomial probability is the sum of the heights of the
vertical bars to the left of the vertical broken line, and the normal approximation is the area
under the normal curve to the left of that line.
The normal curve does not exactly match the
binomial bars, so you can only expect about two places of accuracy from the normal approximation.



enter image description here






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%2f2879815%2fa-problem-dealing-with-the-binomial-distribution%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote



    accepted










    There is a precise answer, you do not need to estimate. Note that using normal distribution instead of the binomial one is an approximation which is very accurate under some conditions, of course, but still, not better that the precise answer.
    Although the problem did not state this, I guess we may assume that customers decide to show up or not independently from each other. This is not realistic: if I book a flight with my wife for our honeymoon, then we both show up or we both don't, normally. Anyway, without the independence assumption, we have nothing.



    So as you correctly put, $p=0.95$, $n=160$, and then the number $X$ of people showing up has distribution $Xsim Binom(160, 0.95)$.



    The question is $P(nleq 155)$.
    To simplify the calculation, we should compute the complement probability: $P(n> 155)= P(n=156) + P(n=157) + P(n=158) + P(n=159) + P(n=160)= binom160156cdot 0.95^156cdot 0.05^4 + binom160157cdot 0.95^157cdot 0.05^3 + binom160158cdot 0.95^158cdot 0.05^2 + binom160159cdot 0.95^159cdot 0.05^1 + binom160160cdot 0.95^160cdot 0.05^0$.






    share|cite|improve this answer






















    • If I had a dime for every time I made this stupid mistake... Thanks a lot, fixed.
      – A. Pongrácz
      Aug 11 at 22:43






    • 1




      In addition to the independence assumption, we also tacitly assume that the airline has a "large number of persons who regularly book flights" which allows us to model this as sampling with replacement. If our airline only operates in the middle of nowheresville with population 160, then we would be sampling without replacement and we would have had exactly eight people not showing up for the flight.
      – JMoravitz
      Aug 11 at 22:49














    up vote
    2
    down vote



    accepted










    There is a precise answer, you do not need to estimate. Note that using normal distribution instead of the binomial one is an approximation which is very accurate under some conditions, of course, but still, not better that the precise answer.
    Although the problem did not state this, I guess we may assume that customers decide to show up or not independently from each other. This is not realistic: if I book a flight with my wife for our honeymoon, then we both show up or we both don't, normally. Anyway, without the independence assumption, we have nothing.



    So as you correctly put, $p=0.95$, $n=160$, and then the number $X$ of people showing up has distribution $Xsim Binom(160, 0.95)$.



    The question is $P(nleq 155)$.
    To simplify the calculation, we should compute the complement probability: $P(n> 155)= P(n=156) + P(n=157) + P(n=158) + P(n=159) + P(n=160)= binom160156cdot 0.95^156cdot 0.05^4 + binom160157cdot 0.95^157cdot 0.05^3 + binom160158cdot 0.95^158cdot 0.05^2 + binom160159cdot 0.95^159cdot 0.05^1 + binom160160cdot 0.95^160cdot 0.05^0$.






    share|cite|improve this answer






















    • If I had a dime for every time I made this stupid mistake... Thanks a lot, fixed.
      – A. Pongrácz
      Aug 11 at 22:43






    • 1




      In addition to the independence assumption, we also tacitly assume that the airline has a "large number of persons who regularly book flights" which allows us to model this as sampling with replacement. If our airline only operates in the middle of nowheresville with population 160, then we would be sampling without replacement and we would have had exactly eight people not showing up for the flight.
      – JMoravitz
      Aug 11 at 22:49












    up vote
    2
    down vote



    accepted







    up vote
    2
    down vote



    accepted






    There is a precise answer, you do not need to estimate. Note that using normal distribution instead of the binomial one is an approximation which is very accurate under some conditions, of course, but still, not better that the precise answer.
    Although the problem did not state this, I guess we may assume that customers decide to show up or not independently from each other. This is not realistic: if I book a flight with my wife for our honeymoon, then we both show up or we both don't, normally. Anyway, without the independence assumption, we have nothing.



    So as you correctly put, $p=0.95$, $n=160$, and then the number $X$ of people showing up has distribution $Xsim Binom(160, 0.95)$.



    The question is $P(nleq 155)$.
    To simplify the calculation, we should compute the complement probability: $P(n> 155)= P(n=156) + P(n=157) + P(n=158) + P(n=159) + P(n=160)= binom160156cdot 0.95^156cdot 0.05^4 + binom160157cdot 0.95^157cdot 0.05^3 + binom160158cdot 0.95^158cdot 0.05^2 + binom160159cdot 0.95^159cdot 0.05^1 + binom160160cdot 0.95^160cdot 0.05^0$.






    share|cite|improve this answer














    There is a precise answer, you do not need to estimate. Note that using normal distribution instead of the binomial one is an approximation which is very accurate under some conditions, of course, but still, not better that the precise answer.
    Although the problem did not state this, I guess we may assume that customers decide to show up or not independently from each other. This is not realistic: if I book a flight with my wife for our honeymoon, then we both show up or we both don't, normally. Anyway, without the independence assumption, we have nothing.



    So as you correctly put, $p=0.95$, $n=160$, and then the number $X$ of people showing up has distribution $Xsim Binom(160, 0.95)$.



    The question is $P(nleq 155)$.
    To simplify the calculation, we should compute the complement probability: $P(n> 155)= P(n=156) + P(n=157) + P(n=158) + P(n=159) + P(n=160)= binom160156cdot 0.95^156cdot 0.05^4 + binom160157cdot 0.95^157cdot 0.05^3 + binom160158cdot 0.95^158cdot 0.05^2 + binom160159cdot 0.95^159cdot 0.05^1 + binom160160cdot 0.95^160cdot 0.05^0$.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Aug 11 at 22:43

























    answered Aug 11 at 22:39









    A. Pongrácz

    3,677624




    3,677624











    • If I had a dime for every time I made this stupid mistake... Thanks a lot, fixed.
      – A. Pongrácz
      Aug 11 at 22:43






    • 1




      In addition to the independence assumption, we also tacitly assume that the airline has a "large number of persons who regularly book flights" which allows us to model this as sampling with replacement. If our airline only operates in the middle of nowheresville with population 160, then we would be sampling without replacement and we would have had exactly eight people not showing up for the flight.
      – JMoravitz
      Aug 11 at 22:49
















    • If I had a dime for every time I made this stupid mistake... Thanks a lot, fixed.
      – A. Pongrácz
      Aug 11 at 22:43






    • 1




      In addition to the independence assumption, we also tacitly assume that the airline has a "large number of persons who regularly book flights" which allows us to model this as sampling with replacement. If our airline only operates in the middle of nowheresville with population 160, then we would be sampling without replacement and we would have had exactly eight people not showing up for the flight.
      – JMoravitz
      Aug 11 at 22:49















    If I had a dime for every time I made this stupid mistake... Thanks a lot, fixed.
    – A. Pongrácz
    Aug 11 at 22:43




    If I had a dime for every time I made this stupid mistake... Thanks a lot, fixed.
    – A. Pongrácz
    Aug 11 at 22:43




    1




    1




    In addition to the independence assumption, we also tacitly assume that the airline has a "large number of persons who regularly book flights" which allows us to model this as sampling with replacement. If our airline only operates in the middle of nowheresville with population 160, then we would be sampling without replacement and we would have had exactly eight people not showing up for the flight.
    – JMoravitz
    Aug 11 at 22:49




    In addition to the independence assumption, we also tacitly assume that the airline has a "large number of persons who regularly book flights" which allows us to model this as sampling with replacement. If our airline only operates in the middle of nowheresville with population 160, then we would be sampling without replacement and we would have had exactly eight people not showing up for the flight.
    – JMoravitz
    Aug 11 at 22:49










    up vote
    0
    down vote













    Let's try this using standard notation:
    The number of people who show for the flight is
    $X sim mathsfBinom(n = 160, p = .95).$



    Thus, on average, the number who show is
    $$mu = E(X) = np = 160(0.95) = 152.$$ So if the
    average number always show up, there will always
    be room for everyone.



    However, the number actually
    showing up for any one flight is variable: specifically,
    $sigma^2 = Var(X) = np(1-p) = 7.68$ and
    $$sigma = SD(X) = sqrtnp(1-p) = 2.75681.$$
    Roughly speaking, it isn't unlikely for a binomial
    random variable to be as much as $2sigma$ on either
    side of the mean. So the number of people actually showing for a particular flight might be between 146 and 175, which means sometimes 155 seats won't be enough
    to accommodate everyone who shows.



    The exact probability that everyone showing gets a
    seat is $P(X le 155) = 0.9061.$ This probability can
    be computed exactly: using the PDF formula for the binomial distribution (as shown by @APongracz), or using software (as commented by @JMoravitz)--either a statistical calculator or
    software program such as R. (The result from R is shown below.)



    pbinom(155, 160, .95)
    ## 0.9061461


    The answer can also be approximated using the normal distribution $mathsfNorm(mu = 152, sigma = 2.7568).$ This can be done directly in software or by standardizing and using printed normal tables. (Roughly as in the deleted answer; using normal tables may require some rounding and thus give a slightly different answer.)



    pnorm(155.5, 152, 2.75681)
    ## 0.8978835


    By any of the methods, the probability of being able to accommodate everyone who shows is about 0.90.$ (On about 10% of these flights there might be announcements asking if some people with reservations are willing to take the next flight in exchange for some sort of 'bribe'.)



    In the figure below, the exact binomial probability is the sum of the heights of the
    vertical bars to the left of the vertical broken line, and the normal approximation is the area
    under the normal curve to the left of that line.
    The normal curve does not exactly match the
    binomial bars, so you can only expect about two places of accuracy from the normal approximation.



    enter image description here






    share|cite|improve this answer


























      up vote
      0
      down vote













      Let's try this using standard notation:
      The number of people who show for the flight is
      $X sim mathsfBinom(n = 160, p = .95).$



      Thus, on average, the number who show is
      $$mu = E(X) = np = 160(0.95) = 152.$$ So if the
      average number always show up, there will always
      be room for everyone.



      However, the number actually
      showing up for any one flight is variable: specifically,
      $sigma^2 = Var(X) = np(1-p) = 7.68$ and
      $$sigma = SD(X) = sqrtnp(1-p) = 2.75681.$$
      Roughly speaking, it isn't unlikely for a binomial
      random variable to be as much as $2sigma$ on either
      side of the mean. So the number of people actually showing for a particular flight might be between 146 and 175, which means sometimes 155 seats won't be enough
      to accommodate everyone who shows.



      The exact probability that everyone showing gets a
      seat is $P(X le 155) = 0.9061.$ This probability can
      be computed exactly: using the PDF formula for the binomial distribution (as shown by @APongracz), or using software (as commented by @JMoravitz)--either a statistical calculator or
      software program such as R. (The result from R is shown below.)



      pbinom(155, 160, .95)
      ## 0.9061461


      The answer can also be approximated using the normal distribution $mathsfNorm(mu = 152, sigma = 2.7568).$ This can be done directly in software or by standardizing and using printed normal tables. (Roughly as in the deleted answer; using normal tables may require some rounding and thus give a slightly different answer.)



      pnorm(155.5, 152, 2.75681)
      ## 0.8978835


      By any of the methods, the probability of being able to accommodate everyone who shows is about 0.90.$ (On about 10% of these flights there might be announcements asking if some people with reservations are willing to take the next flight in exchange for some sort of 'bribe'.)



      In the figure below, the exact binomial probability is the sum of the heights of the
      vertical bars to the left of the vertical broken line, and the normal approximation is the area
      under the normal curve to the left of that line.
      The normal curve does not exactly match the
      binomial bars, so you can only expect about two places of accuracy from the normal approximation.



      enter image description here






      share|cite|improve this answer
























        up vote
        0
        down vote










        up vote
        0
        down vote









        Let's try this using standard notation:
        The number of people who show for the flight is
        $X sim mathsfBinom(n = 160, p = .95).$



        Thus, on average, the number who show is
        $$mu = E(X) = np = 160(0.95) = 152.$$ So if the
        average number always show up, there will always
        be room for everyone.



        However, the number actually
        showing up for any one flight is variable: specifically,
        $sigma^2 = Var(X) = np(1-p) = 7.68$ and
        $$sigma = SD(X) = sqrtnp(1-p) = 2.75681.$$
        Roughly speaking, it isn't unlikely for a binomial
        random variable to be as much as $2sigma$ on either
        side of the mean. So the number of people actually showing for a particular flight might be between 146 and 175, which means sometimes 155 seats won't be enough
        to accommodate everyone who shows.



        The exact probability that everyone showing gets a
        seat is $P(X le 155) = 0.9061.$ This probability can
        be computed exactly: using the PDF formula for the binomial distribution (as shown by @APongracz), or using software (as commented by @JMoravitz)--either a statistical calculator or
        software program such as R. (The result from R is shown below.)



        pbinom(155, 160, .95)
        ## 0.9061461


        The answer can also be approximated using the normal distribution $mathsfNorm(mu = 152, sigma = 2.7568).$ This can be done directly in software or by standardizing and using printed normal tables. (Roughly as in the deleted answer; using normal tables may require some rounding and thus give a slightly different answer.)



        pnorm(155.5, 152, 2.75681)
        ## 0.8978835


        By any of the methods, the probability of being able to accommodate everyone who shows is about 0.90.$ (On about 10% of these flights there might be announcements asking if some people with reservations are willing to take the next flight in exchange for some sort of 'bribe'.)



        In the figure below, the exact binomial probability is the sum of the heights of the
        vertical bars to the left of the vertical broken line, and the normal approximation is the area
        under the normal curve to the left of that line.
        The normal curve does not exactly match the
        binomial bars, so you can only expect about two places of accuracy from the normal approximation.



        enter image description here






        share|cite|improve this answer














        Let's try this using standard notation:
        The number of people who show for the flight is
        $X sim mathsfBinom(n = 160, p = .95).$



        Thus, on average, the number who show is
        $$mu = E(X) = np = 160(0.95) = 152.$$ So if the
        average number always show up, there will always
        be room for everyone.



        However, the number actually
        showing up for any one flight is variable: specifically,
        $sigma^2 = Var(X) = np(1-p) = 7.68$ and
        $$sigma = SD(X) = sqrtnp(1-p) = 2.75681.$$
        Roughly speaking, it isn't unlikely for a binomial
        random variable to be as much as $2sigma$ on either
        side of the mean. So the number of people actually showing for a particular flight might be between 146 and 175, which means sometimes 155 seats won't be enough
        to accommodate everyone who shows.



        The exact probability that everyone showing gets a
        seat is $P(X le 155) = 0.9061.$ This probability can
        be computed exactly: using the PDF formula for the binomial distribution (as shown by @APongracz), or using software (as commented by @JMoravitz)--either a statistical calculator or
        software program such as R. (The result from R is shown below.)



        pbinom(155, 160, .95)
        ## 0.9061461


        The answer can also be approximated using the normal distribution $mathsfNorm(mu = 152, sigma = 2.7568).$ This can be done directly in software or by standardizing and using printed normal tables. (Roughly as in the deleted answer; using normal tables may require some rounding and thus give a slightly different answer.)



        pnorm(155.5, 152, 2.75681)
        ## 0.8978835


        By any of the methods, the probability of being able to accommodate everyone who shows is about 0.90.$ (On about 10% of these flights there might be announcements asking if some people with reservations are willing to take the next flight in exchange for some sort of 'bribe'.)



        In the figure below, the exact binomial probability is the sum of the heights of the
        vertical bars to the left of the vertical broken line, and the normal approximation is the area
        under the normal curve to the left of that line.
        The normal curve does not exactly match the
        binomial bars, so you can only expect about two places of accuracy from the normal approximation.



        enter image description here







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Aug 11 at 23:40

























        answered Aug 11 at 23:04









        BruceET

        33.5k71440




        33.5k71440






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2879815%2fa-problem-dealing-with-the-binomial-distribution%23new-answer', 'question_page');

            );

            Post as a guest













































































            這個網誌中的熱門文章

            tkz-euclide: tkzDrawCircle[R] not working

            How to combine Bézier curves to a surface?

            1st Magritte Awards