document.write( "Question 1197154: The random variable X has a binomial distribution with n = 7 and p = 0.44.\r
\n" ); document.write( "\n" ); document.write( "Calculate P(4). Enter your answer as a decimal with four decimal places.
\n" ); document.write( "

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

\n" ); document.write( "If your teacher doesn't care to see the steps and/or time is very short, then I recommend a calculator or spreadsheet. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Here are two such examples of a free online calculator
\n" ); document.write( "https://www.omnicalculator.com/statistics/binomial-distribution
\n" ); document.write( "https://www.statology.org/binomial-distribution-calculator/\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you want to use a spreadsheet, then the command to type in is =BINOM.DIST(4,7,0.44, 0)
\n" ); document.write( "Alternatively you can use BINOMDIST in place of BINOM.DIST
\n" ); document.write( "Don't forget about the equal sign up front.
\n" ); document.write( "Check out this page for further documentation of how the BINOMDIST function works
\n" ); document.write( "https://support.microsoft.com/en-us/office/binom-dist-function-c5ae37b6-f39c-4be2-94c2-509a1480770c
\n" ); document.write( "This documentation page is for excel, but the function works with other spreadsheet programs like OpenOffice and Google Sheets.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "On TI83 and TI84 calculators, press the button labeled \"2nd\" in the top left corner. Then hit the VARS key. Scroll down until you reach binompdf
\n" ); document.write( "and hit enter. Then type in the following
\n" ); document.write( "binompdf(7,0.44,4)
\n" ); document.write( "Unfortunately the order of these input values is slightly different from BINOMDIST mentioned earlier. Be sure to review your calculator's manual to get the correct order of values. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In GeoGebra, the command to type in is BinomialDist(7, 0.44, 4, false)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Feel free to pick your favorite calculator method.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Using any of those calculators gives an answer of 0.2304 when rounding to four decimal places.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "-----------------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you don't have access to such calculators, or your teacher won't allow it, then the standard method is to use the Binomial Distribution formula that the tutor @ewatrrr has mentioned.
\n" ); document.write( "That's the method I'd recommend if you are in exam settings. \r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "But let's look at this a different way so we can see where the binomial formula comes from.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The term \"binomial\" means there are two outcomes.
\n" ); document.write( "bi = 2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Think of a coin flip.
\n" ); document.write( "In this case, the coin is biased toward one side.
\n" ); document.write( "Let's say \"heads\" has a probability of 0.44
\n" ); document.write( "That means \"tails\" has probability of 1-0.44 = 0.56\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We'll flip the coin n = 7 times.
\n" ); document.write( "We could flip a single coin 7 times, or we could flip 7 coins exactly once each.
\n" ); document.write( "The two situations are identical.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "P(4) represents the \"The probability of exactly 4 heads showing up out of 7 coin tosses\".
\n" ); document.write( "The notation is equivalent to P(x = 4).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Assuming each coin toss is independent, we multiply out the probabilities
\n" ); document.write( "Let's start with the heads
\n" ); document.write( "(0.44)(0.44)(0.44)(0.44) = (0.44)^4\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Then the tails
\n" ); document.write( "(0.56)(0.56)(0.56) = (0.56)^3\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In short,
\n" ); document.write( "probability of four heads = (0.44)^4
\n" ); document.write( "probability of three tails = (0.56)^3\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Therefore (0.44)^4*(0.56)^3 represents the probability of getting the sequence HHHH TTT\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The expression (0.44)^4*(0.56)^3 applies to that sequence only.
\n" ); document.write( "But we could arrange the heads and tails.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "For instance, we could go from this
\n" ); document.write( "HHHH TTT
\n" ); document.write( "to this
\n" ); document.write( "HHHT HTT\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The question is: how can we count the number of ways to arrange these heads and tails?\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "That's where the nCr combination formula comes in.
\n" ); document.write( "Some textbooks will call this the \"choose\" formula.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Imagine slips of paper labeled 1 through 7. Then place those pieces of paper into a hat.
\n" ); document.write( "We'll randomly select 4 slips of paper.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "One possible sequence is 1,2,5,7
\n" ); document.write( "Those numbers will then tell us where to place the \"H\"s to get this sequence of coin flips: H,H,_,_,H,_,H
\n" ); document.write( "I've filled slots 1,2,5 and 7.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Each black space will then get a T to get HHTT HTH\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The process of selecting those 4 pieces of paper can be counted by using the nCr combination formula.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We have n = 7 pieces of paper and r = 4 selections
\n" ); document.write( "Let's compute the nCr value
\n" ); document.write( "n C r = (n!)/(r!(n-r)!)
\n" ); document.write( "7 C 4 = (7!)/(4!*(7-4)!)
\n" ); document.write( "7 C 4 = (7!)/(4!*3!)
\n" ); document.write( "7 C 4 = (7*6*5*4!)/(4!*3!)
\n" ); document.write( "7 C 4 = (7*6*5)/(3!)
\n" ); document.write( "7 C 4 = (7*6*5)/(3*2*1)
\n" ); document.write( "7 C 4 = (210)/(6)
\n" ); document.write( "7 C 4 = 35
\n" ); document.write( "Put another way, we have 7*6*5 = 210 permutations, and then we divide by 3*2*1 = 6 to adjust for the fact that order doesn't matter.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So that's where the 35 comes from in the equation @ewatrrr mentioned.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "You can also use Pascal's Triangle to determine this. Locate the row that has 1,7,... at the start. Then count 4+1 = 5 spaces to arrive at 35.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "--------------------------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Recall that (0.44)^4*(0.56)^3 represented the probability of getting the sequence HHHH TTT.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Then we counted 35 ways to arrange the four H's and three T's.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This means we'll stick 35 out front to get
\n" ); document.write( "35*(0.44)^4*(0.56)^3\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Computing that expression will get roughly 0.2303789694976 which then rounds to 0.2304 which we got earlier.
\n" ); document.write( "
\n" ); document.write( "
\n" );