Hypothesis Testing
Hypothesis Testing
Testing
Astri Mutiar, MS
Hypothesis
• To tell whether our data supports or rejects our ideas,
we use statistical hypothesis testing.
Traditional method:
P-value method:
Confidence Intervals:
Reject Ho Type I OK
Controlling Type I and
Type II Errors
• For any fixed α, an increase in the sample
size n will cause a decrease in β.
• Ho : ……….
• Ha:
Step 2: Define the significance level for the study,
choose the appropriate test statistic, determine the
critical region, and state the rejection rule.
1. Significance level:
2. Statistic test:
3. Critical value:
Step 3:Make sure that the data meet the
necessary assumption to compute the test
statistics
Sample: 48 women
The mean and population standard
deviation of BMI in was 27.9 . Standard
deviation of 5.4.
Step 4: Compute and state the parameters
that are being compared by the test statistic
1.3 1.3
z = z = z = 1.67
5.4 0.7794
6.928
• Therefore, the computed value of the z-test is 1.67.
This value does not exceed the critical value of 1.96,
and so it does not fall into the rejection region.
• Convert z-score to p-value.
• After calculating the standardized score, we need to
look up the area (same as probability) using the z-
table. First, we find the first two digits on the left
side of the z-table. In this case it is 1.6. Then, we
look up a remaining number across the table (on the
top) which is 0.07 in our example. The corresponding
area is 0.9525 which translates into 95.25%.
Step 6: Determine statistical significance and
clearly state a conclusion
2019/10/14
The Normal Distribution
Changing σ increases
or decreases the
σ spread.
µ X
Are my data “normal”?
Not all continuous random variables are
normally distributed!!
It is important to evaluate how well the
data are approximated by a normal
distribution
Are my data normally
distributed?
1. Look at the histogram! Does it appear bell
shaped?
2. Compute descriptive summary measures—
are mean, median, and mode similar?
3. Look at the value of skewness and kurtosis
4. Look at a normal probability plot—is it
approximately linear?
5. Run tests of normality (such as
Kolmogorov-Smirnov). But, be cautious,
highly influenced by sample size!
Histogram
Histogram
Skewness and kurtosis
20
K-S Goodness-of-Fit Test