Title: Some Rules of Probability
1Some Rules of Probability
2CONDITIONAL PROBABILITY
- More formulae
- P(BA)
- Thus, P(BA) is not the same as P(AB).
- P(A?B) P(AB)P(B)
- P(A?B) P(BA)P(A)
3- AIDS Testing Example
- ELISA test
- HIV positive
- HIV negative
- Correctness 99 on HIV positive person
- (1 false negative)
- 95 on HIV negative person
- (5 false alarm)
- Mandatory ELISA testing for people applying for
marriage licenses in MA. - low risk population 1 in 500 HIV positive
- Suppose a person got ELISA .
- Q HIV positive?
4Bayes Theorem
By the way This is the key result
underlying Bayesian Statistics
some people make a living out of this formula
Try Michael Birnbaums (former UIUC psych
faculty) Bayesian calculator http//psych.fullerto
n.edu/mbirnbaum/bayes/BayesCalc.htm
5Bayes Theorem
6Today
- The Binomial Distribution
7We have already talked about the most famous
continuous random variable, which, because it
is so heavily used, even has a name The Normal
Random Variable (and, associated with it, the
Normal Distribution)
Today we will talk about a famous discrete random
variable, which, because it is so heavily used,
also has a name The Binomial Random Variable
(and, associated with it, the Binomial
Distribution)
8FAIR COIN POPULATION THEORETICAL PROBABILITY
OF HEADS IS ½
If you toss a fair coin 10 times, what is the
probability of x many heads?
9(No Transcript)
10Binomial Random Variable
Potential Examples Repeat a simple dichotomous
experiment n times and count Coin Tossing
heads Marketing purchases Medical
procedure patients cured Finance days
stock ? Politics voters favoring a given
bill Testing number of test items of a given
difficulty that you solve
correctly Sampling of females in a random
sample of people Education of high school
students who drink alcohol
11Population
Repeat simple experiment n many times
independently.
12Binomial Random Variable
X number of successes in n many
independent repetitions of an experiment, each
repetition having a probability p of success
13The Binomial Distribution
14Trial 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
Trial 2 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
Trial 3 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
Trial 4 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
Probab. (letting q1-p) pppp pppq ppqp ppqq pqpp pqpq pqqp pqqq qppp qppq qpqp qpqq qqpp qqpq qqqp qqqq
X 4 3 3 2 3 2 2 1 3 2 2 1 2 1 1 0
15Probab. (letting q1-p) pppp pppq ppqp ppqq pqpp pqpq pqqp pqqq qppp qppq qpqp qpqq qqpp qqpq qqqp qqqq
X 4 3 3 2 3 2 2 1 3 2 2 1 2 1 1 0
16In general, for n many trials
How do we figure that out in general?
17Factorial
18Binomial Distribution Formula
TABLE C Pages T-6 to T-10 in the book
19Probab. (letting q1-p) pppp pppq ppqp ppqq pqpp pqpq pqqp pqqq qppp qppq qpqp qpqq qqpp qqpq qqqp qqqq
X 4 3 3 2 3 2 2 1 3 2 2 1 2 1 1 0
20BINOMIAL COEFFICIENTS
21(No Transcript)
22(No Transcript)
23(No Transcript)
24(No Transcript)
25(No Transcript)
26Example heads in 5 tosses of a coin
XB(5,1/2) Expectation Variance
heads in 5 tosses of a coin 2.5
1.25
27PROOF
28Another Statistic The Sample Proportion
Remember that X is a random variable
The sample proportion is a linear transformation
of X and thus a random variable too
Sampling Distribution of the Sample Proportion
29The Sample Proportion
Unbiased Estimator
30Lets take another look at some Binomial
Distributionsespecially what happens as n gets
bigger and bigger
31(No Transcript)
32(No Transcript)
33(No Transcript)
34(No Transcript)
35(No Transcript)
36Normal Approximation of/to the Binomial
37(No Transcript)
38Normal Approximation
39Normal Approximation Lets check it out!
TABLE C Pages T-6 to T-10 in the book
40Normal Approximation Lets check it out!
Standardizing
41Normal Approximation Lets check it out!
42Normal Approximation Lets check it out!
Are we stuck with a bad approximation??
43(No Transcript)
44(No Transcript)
45(No Transcript)
46For now, thats it
- We will revisit the Binomial
- Based on the sample proportion as an estimate of
the population proportion, we will develop
confidence intervals for the population
proportion. - We will carry out hypothesis tests about the true
population proportion, using the information
gained from the sample proportion.