Beruflich Dokumente
Kultur Dokumente
Hypothesis Testing
Null: p = 0.30.
Alternative: p ≠ 0.30.
Null : p = 1/6.
Alternative: p > 1/6.
Null: µG = µB.
Alternative: µG ≠ µB .
Hypothesis Testing
Q 3. Null: p = 0.30.
Alternative: p ≠ 0.30.
Q 4. Null: p = 1/6.
Alternative: p > 1/6.
Q 5. Null: µG = µB.
Alternative: µG < µB.
Hypothesis Testing
• Population
All possible tosses of the coin
• Parameter of interest
p
• The null and the alternative hypotheses
H0: The coin is fair; p = .5
Ha: The coin is not fair; p > .5
• The sample test statistics; on which we base a
conclusion about the parameter p
S, the number of heads
Making a Decision Rule
• Toss 40 times
• If fair then about 20 heads
• If biased substantially more than 20 heads
• what is substantially more than 20 heads?
• Make a decision rule;
– If in 40 tosses you get 25 or more heads then the coin
is biased
• Experiment
– Reject H0 if S 25
Statistical Errors
– = np = 20
= 𝑛𝑝𝑞 = 3.16
– Find the probability that we would toss 25 or
more heads in 40 trials
– P (S 25)
– What is 𝒛𝟐𝟒.𝟓 ?
– P (S 25) =
–=
– We found value of from a given decision rule
Statistical Errors
– = 0.01
– One-tail test on the right
– Look up the area of 1.00 – 0.01 = .99
– 𝑧𝑐 = 2.33
The subscript c indicate that this is a critical value
The critical value is the value that marks the start
or end of the rejection region
– Transform 𝑧𝑐 into specific number of heads
𝑆𝑐 = + 𝑧𝑐 x
𝑆𝑐 = 27.8
Statistical Errors
• Type II error
– For a fixed value of n, if we decrease alpha, we will
increase beta, and vice versa.
Value of for n = 40
True value of p = 0.05 = 0.01
0.60 0.68 0.87
0.70 0.19 0.43
0.80 0.005 0.04
Statistical Errors
• Type II error
– Increasing the sample size decreases the value of
beta without increasing the value of alpha
• Value of for = 0.05
True value of p n = 40 n = 60
0.60 0.68 0.55
0.70 0.19 0.06
0.80 0.005 0.0001
Hypothesis Testing Procedures
Assumptions
– If the null hypothesis is true, then the theoretical
distribution of the sample statistics is known
– If we took many random samples, then the
observed set of statistics would match the
theoretical distribution
Hypothesis Testing
Project 2
Select a reported fact from a newspaper or
some other source and test it on a population of
your own choice