Professional Documents
Culture Documents
Introduction To Probability & Statistics: Lecture - 15/16
Introduction To Probability & Statistics: Lecture - 15/16
Lecture - 15/16
Motivating examples
• Hoping to improve customer service, a retailer sent a sample of 85
salespeople to a training program that emphasized self-image, respect
for others, and manners. Management decided that if the rate of
complaints fell below 10% per month after the training, it would judge
the program a success.
Hypothesis testing
• Two important hypotheses:
Ha : Researcher’s claim - hypothesis / Alternative hypothesis
H0 : Null hypothesis
• Examples:
Ha : p < p0 vs. H0 : p ≥ p0 Ha : µ < µ0 vs. H0 : µ ≥ µ0
Ha : p > p0 vs. H0 : p ≤ p0 Ha : µ > µ0 vs. H0 : µ ≤ µ0
Ha : p �= p0 vs. H0 : p = p0 Ha : µ �= µ0 vs. H0 : µ = µ0
• Important rules:
→ ”Equality” sign always stays with H0
→ H0 is ”always” the compliment of Ha
Motivating examples
• Hoping to improve customer service, a retailer sent a sample of 85
salespeople to a training program that emphasized self-image, respect
for others, and manners. Management decided that if the rate of
complaints fell below 10% per month after the training, it would judge
the program a success.
Random variable:
Data:
Parameter of interest:
Hypotheses : H0 : vs. Ha :
Defining H0 and Ha
• Should we use Ha : p > 0.7 vs. H0 : p ≤ 0.7
OR
Ha : p < 0.7 vs. H0 : p ≥ 0.7
Hypothesis testing
A few important points
1. We do not know the truth.
2. Based on the observed data, we have to support either H0 or Ha
3. Of course, we cannot be certain (i.e., there is some room for error)
Hypothesis testing
A few important points
1. We do not know the truth.
2. Based on the observed data, we have to support either H0 or Ha
3. Of course, we cannot be certain (i.e., there is some room for error)
Hypothesis testing
A few important points
1. We do not know the truth.
2. Based on the observed data, we have to support either H0 or Ha
3. Of course, we cannot be certain (i.e., there is some room for error)
• Type II error:
– P(Type II error) is always computed for a given fixed p ∈ Ha
– P(Type II error at p ∈ Ha ) is denoted by β(p)
– Power of a test K (p) = 1 − β(p)
“Good” test
• Objective: built a test that minimizes both Type I and Type II errors
Recall: H0 : vs. Ha :
Test statistic: X ∼
Observed: Xobs =
α = P(Reject H0 |p = p0 )
= P(X ≥ |p = )
Ha Decision Rule
Example
Out of all the air-travel bookings in major airlines, at least 58% are said to be
done online. A sample of 70 airlines revealed that 52% of bookings for last
year were done online. State the null and alternative hypotheses and carry
out the test at the 5% level of significance.
Example (...)
Example (...)
P-value method