Chapter 5: Discrete Probability Distributions

advertisement
Chapter 5: Discrete Probability
Distributions
Slide set to accompany "Statistics Using Technology" by Kathryn Kozak (Slides by David H Straayer) is
licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Based on a work at
http://www.tacomacc.edu/home/dstraayer/published/Statistics/Book/StatisticsUsingTechnology112314b.pdf.
Discrete vs. Continuous
• As a reminder, a variable or what will be called the
random variable from now on, is represented by the
letter x and it represents a quantitative (numerical)
variable that is measured or observed in an
experiment.
• Also remember there are different types of
quantitative variables, called discrete or continuous.
What is the difference between discrete and
continuous data? Discrete data can only take on
particular values in a range. Continuous data can take
on any value in a range. Discrete data usually arises
from counting while continuous data usually arises
from measuring.
Size of Household as discrete
probability distribution
Household Size from U.S. Census of 2010
Size of
household
Probability
1
2
3
4
26.7% 33.6% 15.8% 13.7%
5
6
6.3% 2.4%
7 or
more
1.4%
Mean and St. Dev.
• The mean is given by:
πœ‡ = π‘₯𝑃(π‘₯)
• The mean is also known as expected value.
• The standard deviation is given by:
• 𝜎=
π‘₯ − πœ‡ 2 𝑃(π‘₯)
Calculating Mean and S.D.
• A little tedious. The book shows all the
numbers.
• Reasonably routine to do in Excel
• Easiest for our purposes is to use the twoargument version of 1-var statistics on our TIs
• For this table, ignore larger families, pretend
they’re all 7.
On the TI
• Go into the STAT menu, then the Edit menu. Type
the x values into L1 and the P(x) values into L2.
Then go into the STAT menu, then the CALC
menu. Choose 1:1-Var Stats. This will put 1-Var
Stats on the home screen. Now type in L1,L2
(there is a comma between L1 and L2) and then
press ENTER.
Rare Event Rule
If, under a given assumption, the probability of a
particular observed event is extremely small,
then you can conclude that the assumption is
probably not correct.
Determining if an event is unusual
If you are looking at x successes among n trials, and the
P(x or more successes) < 0.05, then you can consider the
x an unusually high number of successes. Another way to
think of this is if the probability of at least x successes
among n trials is less than 0.05, then the event x is
considered unusual.
If you are looking at x successes among n trials, and the
P(x or fewer successes) < 0.05, then you can consider the
x an unusually low number of successes. Another way to
think of this is if the probability of at most x successes
among n trials is less than 0.05, then the event x is
considered unusual.
Unusual families?
a) Is it unusual for a household to have six people
in the family?
P(x ο‚³ 6) = P(x = 6) + P(x ο‚³ 7) =
.024 + 0.014 = 0.038 < 0.05
b) If you did come upon many families that had six
people in the family, what would you think?
c) Is it unusual for a household to have four people
in the family?
d) If you did come upon a family that has four
people in it, what would you think?
Binomial Probability Distribution
1) Fixed number of trials, n, which means that the
experiment is repeated a specific number of
times.
2) The n trials are independent, which means that
what happens on one trial does not influence
the outcomes of other trials.
3) There are only two outcomes, which are called a
success and a failure.
4) The probability of a success doesn’t change from
trial to trial, where p = probability of success and
q = probability of failure, q = 1 - p .
Binomial formula for probability
𝑃 π‘₯=π‘Ÿ =
_π‘Ÿ
π‘Ÿ
𝑛
π‘›πΆπ‘Ÿπ‘ π‘ž
Where
𝑛!
π‘›πΆπ‘Ÿ =
π‘Ÿ! 𝑛 − π‘Ÿ !
_π‘Ÿ
π‘Ÿ
𝑛
𝑝 π‘ž is the probability of getting r
successes and then n-r failures, and π‘›πΆπ‘Ÿ is
the number of ways these n number can
be rearranged.
When looking at a person’s eye color, it turns out that 1%
of people in the world has green eyes.
Consider a group of 20 people.
a) State the random variable.
b) Argue that this is a binomial experiment
Find the probability that:
c) None have green eyes.
d) Nine have green eyes.
e) At most three have green eyes.
f) At most two have green eyes.
g) At least four have green eyes.
In Europe, four people out of twenty
have green eyes. Is this unusual?
Since the probability of finding four or more people
with green eyes is much less than 0.05, it is unusual
to find four people out of twenty with green eyes.
That should make you wonder if the proportion of
people in Europe with green eyes is more than the
1% for the general population. If this is true, then
you may want to ask why Europeans have a higher
proportion of green-eyed people. That of course
could lead to more questions.
Binomials on the TI: pdf and cdf
binompdf (2nd VARS-DISTR) / “A:”
binompdf (n, probability, x)
This calculates the probability of
exactly x successes.
binomcdf (2nd VARS-DISTR) / “A:”
Binomcdf(n, probability, x)
This calculates the cumulative
probability of from 0 to x
successes. Think “At most”.
To get “at least”, use complement
and “off by one”.
“At Least” and “At Most”
Consider a binomial with 17 possibilities:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
“At least 11” would be these:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
“At most 10” would be:
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
See how “at least 11” is the opposite of “at most
10”? Opposite is complement
Binomcdf (trials, P(success), n) calculates the
probability of “at most n” successes.
1 in 88 have autism.
Group of 10 children.
a) State the random variable
b) Argue that this is a binomial experiment
Find the probability that
c) None have autism. binompdf(10,1/88,0)
d) Seven have autism. binompdf(10,1/88,7)
e) At least five have autism.
1 – binomcdf(10,1/88,4)
f) At most two have autism. binomcdf(10,1/88,2)
g) Suppose five children out of ten have autism. Is
this unusual? What does that tell you?
Mean and S.D. of Binomial Dist.
• n is number of trials, p is the probability of
success, and q = (1 – p)
• Mean
πœ‡ = 𝑛𝑝
• Standard Deviation
𝜎 = π‘›π‘π‘ž
20 people, when 1% have green eyes
a)
b)
c)
d)
e)
f)
State the random variable.
Write the probability distribution.
Draw a histogram.
Find the mean.
Forget variance.
Find the standard deviation.
Download