document.write( "Question 1207647: A high school baseball player has a 0.216 batting average. In one game, he gets 8 at bats. What is the probability he will get at least 4 hits in the game?
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #845628 by math_tutor2020(3817)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Answer: 0.07214605 (approximate)
\n" ); document.write( "Round it however your teacher instructs.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Explanation\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We use the binomial distribution since...
  1. The baseball player gets a hit or they do not. There are two outcomes.
  2. Each trial, or at bat, has the same probability
  3. Each trial is independent.
The three criteria for a binomial have been met.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The binomial probability formula is
\n" ); document.write( "B(x) = (nCx)*(p^x)*(1-p)^(n-x)
\n" ); document.write( "where,
\n" ); document.write( "n = sample size = number of attempts or at bats = 8
\n" ); document.write( "p = batting average = probability of a hit = 0.216
\n" ); document.write( "x = number of hits
\n" ); document.write( "x spans from x = 0 to x = 8.
\n" ); document.write( "i.e. x is from the set {0,1,2,3,4,5,6,7,8}\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The nCx refers to the nCr combination formula.
\n" ); document.write( "Some textbooks call it the \"choose\" formula.
\n" ); document.write( "These values can be computed with the nCr formula or by use of Pascal's Triangle.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's compute the binomial probability that the player gets x = 0 hits
\n" ); document.write( "B(x) = (nCx)*(p^x)*(1-p)^(n-x)
\n" ); document.write( "B(x) = (8Cx)*(0.216^x)*(1-0.216)^(8-x)
\n" ); document.write( "B(x) = (8Cx)*(0.216^x)*(0.784)^(8-x)
\n" ); document.write( "B(0) = (8C0)*(0.216^0)*(0.784)^(8-0)
\n" ); document.write( "B(0) = 1*(0.216^0)*(0.784)^(8-0)
\n" ); document.write( "B(0) = 0.14273435
\n" ); document.write( "There is roughly a 14.27% chance that the batter doesn't get any hits in the 8 at bats.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Follow similar steps for x = 1 through x = 3 to find:
\n" ); document.write( "B(1) = 0.31459816
\n" ); document.write( "B(2) = 0.30336251
\n" ); document.write( "B(3) = 0.16715893\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Then adding up those results gives
\n" ); document.write( "B(0) + B(1) + B(2) + B(3)
\n" ); document.write( "= 0.14273435 + 0.31459816 + 0.30336251 + 0.16715893
\n" ); document.write( "= 0.92785395
\n" ); document.write( "This is the probability that the batter gets at most 3 hits, i.e. 3 or less hits.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Subtract this from 1 to get the final answer.
\n" ); document.write( "1 - 0.92785395 = 0.07214605\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Why are we subtracting from 1?
\n" ); document.write( "Because of this scratch work
\n" ); document.write( "( B(0) + B(1) + B(2) + B(3) ) + ( B(4) + B(5) + B(6) + B(7) + B(8) ) = 1
\n" ); document.write( "which solves to
\n" ); document.write( "B(4) + B(5) + B(6) + B(7) + B(8) = 1 - ( B(0) + B(1) + B(2) + B(3) )\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Think of it like
\n" ); document.write( " sum of B(4) through B(8) = 1 - ( sum of B(0) through B(3) )
\n" ); document.write( "or,
\n" ); document.write( " P(at least 4 hits) = 1 - P(at most 3 hits) \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Or alternatively you can compute values B(4) through B(8) and add them up to get the answer more directly.
\n" ); document.write( "There's not much of a trade-off between both options since we're adding up the same number of terms more or less.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "A much faster alternative is to use software such as a spreadsheet.
\n" ); document.write( "The BinomDist function in Excel and many other spreadsheets is what we want to use.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The command to type in would be =1-BinomDist(3,8,0.216,1)
\n" ); document.write( "The BinomDist(3,8,0.216,1) portion computes the sum from B(0) up to B(3) including both endpoints. Then we subtract from 1 as explained earlier.
\n" ); document.write( "The equal sign up front is to tell the spreadsheet software to compute the formula rather than display as plaintext.
\n" ); document.write( "Refer to the spreadsheet help manual, or the link I posted, for more information how the BinomDist function works.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you have access to a TI83 calculator or similar, then check out this article
\n" ); document.write( "Make sure you use the CDF and not PDF. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Various free online binomial distribution calculators can achieve this same goal.
\n" ); document.write( "
\n" ); document.write( "
\n" );