The Binomial Probability Distribution What is a “binomial probability experiment”? [JK10 page 287] 1. There are π repeated independent trials. [The result of one trial does not affect the probability of success on any other trial in the experiment.] 2. Each trial has two possible outcomes: Success or Failure, Event Happens or Doesn’t Happen, Yes or No, True or False, Right or Wrong. 3. Let π = π(π π’ππππ π ). Then π = π(πππ‘ π π’ππππ π ) = 1 − π and π + π = 1, exactly 1. 4. The random variable, π₯, is the count of the number of successful trials. π₯ can be any integer value from 0 to π. The Binomial Probability Function π π(π₯ ) = ( ) β (π π₯ ) β (π π−π₯ ) π₯ This means: “The Probability of exactly x successes in n trials is computed according to this formula.” What are the formulas for the Mean and the Standard Deviation? The Mean number of successes is π = π β π The Standard Deviation is π = √π β π β π Document1 2/9/2016 3:26 AM - D.R.S. Technology examples 8 Example: Rolling a pair of dice π = 10 times in hopes of a 7 or an 11, probability π = 36. So probability of getting something other than a 7 or 11 is π = 28 . 36 Problem statement and By-hand formulas TI-84 with the binompdf() and binomcdf() “The probability of there being exactly π₯ = 3 successes in the π = 10 trials.” 10 ( ) β (π3 ) β (π 7 ) 3 “The probability of π₯ or fewer – that is, 0 to π₯, successes in π trials.” 2ND DISTR A: binompdf() to get the probability at that one specific π₯ value only. Excel with the =BINOM.DIST() function (No “.” in Excel 2007). 2ND DISTR B:binomcdf() to get the total probability of all π₯ values from 0 to this π₯. π₯=3 10 ∑ ( ) β (π π₯ ) β (π10−π₯ ) π₯ π₯=0 (If working by hand, four separate calculations are needed.) “The probability of π₯ = 3 or more– that is, π₯ to π, successes in π trials.” π₯=10 10 ∑ ( ) β (π π₯ ) β (π10−π₯ ) π₯ π₯=3 If working by hand, eight separate calculations are needed. Or be clever and do π₯=2 10 1 − ∑ ( ) β (π π₯ ) β (π10−π₯ ) π₯ Subtract the cumulative probability of 0 thru 10, minus the cumulative probability of 0 thru 2. Or 1 minus the cumulative probability of 0 thru 2. We can do this because the upper bound was the maximum, 10. π₯=0 “The probability of at least π = 5 but no more than π = 9 successes in π trials.” π₯=4 10 ∑ ( ) β (π π₯ ) β (π10−π₯ ) π₯ The cumulative probability of 0 thru 9, Minus the cumulative probability of 0 thru 4. π₯=1 Document1 2/9/2016 3:26 AM - D.R.S. Displaying all of the probabilities in a table and a graph 8 Again with 10 rolls of a pair of dice, seeking rolls that total 7 or 11. We have a binomial probability experiment with π = 10, and π = 36. TI-84 Define one list with the π₯ values of 0, 1,2, 3, …, 9, 10. You can inspect the lists if you want, and see all of the probabilities. Define another list with the binomial probabilities, π(0), π(1), β― , π(10) 2ND STAT PLOT We turn this plot on. We select the bar chart. WINDOW Our x values go from 0 to 10, so we need the x-axis from 0 to 11, so our bar for x = 10 will be graphed. Unnecessary – but we were curious, so we verified that the sum fo the probabilities are exactly 1. GRAPH (For “seq(“, use 2ND CATALOG then press the letter S (but not with ALPHA) and scroll down to “seq(“. Do not use the Seq with capital letter S!) Document1 2/9/2016 3:26 AM - D.R.S. Excel Set up a table of values: For the x values in Column A, you just put the 0 in cell A1. Then hover over the bottom right corner of cell A1 (it’s called “the fill handle”; see the cursor change to a more compact plus sign), hold down the CTRL key, and drag down through cell A11. Excel fills the range with consecutive integers for you . This is easier than setting up a formula. Then in cell B1 type the formula shown. Click on cell B1, right-click, Copy, then highlight B2 down through B11. Right click, Paste. (Or use the Fill handle, but without the CTRL key). We did an extra check to make sure that the probabilities sum to exactly 1. Highlight the column B cells with the probabilities. Click the ribbon’s “Insert” menu and in the “Charts” section, choose the Column chart. The horizontal axis labels needed to be fixed. The legend was deleted. Titles and labels should be added, too. Document1 2/9/2016 3:26 AM - D.R.S.