Hypothesis Testing I
Hypothesis Testing I
Testing
Ibrahim Altubasi, PT, PhD
The University of Jordan
Hypothesis Testing
Example 1:
Research question: Does stimulation during infancy have a beneficial effect on
human development?
What we know?
The body weight for each of the 16 infants were measured at 2 years
of age
The Null hypothesis and the alternative hypothesis are mutually exclusive
and exhaustive. They cannot both be true.
Hypothesis Testing
Hypothesis testing is a statistical procedure that uses data from a sample to
test or evaluate whether a statistical hypothesis (Null hypothesis) about a
population parameter is true or not.
The sampling distribution of the sample means with n=16 should be normally
distributed with mean μx̅ = 26 pounds and
SE σx̅ = 4/√16 = 1 pound.
Our sample mean x̅ = 29 with sample size n=16. Where is this sample mean
located in the sampling distribution of the sample means with n=16 if H 0 is
true? What is the probability that sample mean is as large as or larger than 29 if
H0 is true?
Hypothesis Testing
Zx̅ = x̅ - μx̅ / σx̅ (Z- statistic)
If the null hypothesis is true, the probability that we will get a z statistic this
large (z=3) or larger from a random sampling is .0013, which is so small that we
reject the null hypothesis. As a result, we conclude that the additional handling
of the babies increases the 2-year-old children’s body weight.
Hypothesis Testing
In this study, z = (29-26) / 1 = 3, p(z≥3) = .0013
In other words, if the null hypothesis is true (in our example, if the treated
population mean is the same as the original population mean, which is 26
pounds), it is very unlikely that we will get a random sample of size 16 from
this population whose average weight is 29 pounds or larger.
Reject H0 if p≤α
Do not reject H0 if p>α
For example, a decision rule with α=.05 defines an unlikely event as one that
occurs 5 times in 100 or less assuming H0 is true. This implies that we are
willing to make an error 5 times in 100 and reject the null hypothesis when it is
actually true.
Hypothesis Testing
Decision rule 1:
H1: μ ≠18
Non-directional test / two-tailed
test: no direction of the prediction
is specified in the statistical
hypotheses.
Question: Test the hypothesis using Decision Rule 1 with p-value. P-value is
defined as the probability of getting something more extreme than your result
assuming H0 is true. What is p-value here?
Hypothesis Testing
Step 1: decide one-tailed or two-tailed test, set up hypotheses and the alpha
Level
The locations of the critical region boundaries for three different levels of
significance: α = .05, α = .01, and α = .001 for non-directional test.
Hypothesis Testing
Sample means that fall in the critical region (shaded areas) have a
probability less than alpha (p < α). H0 should be rejected. Sample means
that do not fall in the critical region have a probability greater than alpha (p
> α).
Hypothesis Testing
Example 3: A researcher is using a sample of 16 laboratory rats to examine the
effect of a new diet drug. It is known that under regular circumstances these
rats eat an average of 10 grams of food each day. The distribution of food
consumption is normal with σ=4. The expected effect of the drug is to reduce
food consumption. The purpose of the experiment is to determine whether or
not the drug really works. The sample of 16 rats eat an average of 8 grams of
food each day.