What is a “binomial probability experiment”?

advertisement
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.
Download