Hypothesis Testing ( my )
Hypothesis testing is sometimes referred to as a "Test of Significance". We will tend to use the former term but you may encounter the latter in readings or on a quiz or the final so it is important that you know that both terms refer to the same thing.
You should also bear in mind that hypothesis testing is based on sampling distribution theory. You should also note that hypothesis testing is similar to "proof by contradiction" in that you will assume your null hypothesis true and then see if your sample provides enough evidence to refute it.
Definition
Given any hypothesis testing problem you will always identify two hypotheses:
H0: my = m
Ha: my > m or Ha: my < m
Hypothesis Testing Procedure (my )
To conduct a hypothesis test for my you will follow the following four step procedure:
e.g. Let us say that after examination of a problem statement you identify the null hypothesis to be my = m and you think that my > m, then you would state this as follows:
H0: my = m
Ha: my > m
Note: An inconsistent ybar means that your sample does not support your alternative and so you cannot proceed.
Note: The p-value is the proportion of samples of size n that would result in a ybar more extreme than the one observed if H0 is true. To do this you must consider the sampling distribution of ybar. Remember that the sample size determines the sampling distribution:
Note: The z and t
values computed for hypothesis testing problems
are sometimes referred to as test
statistics.
Note: Remember that when n is small
ybar is only "t" distributed if y is normally
distributed. This means that for n small
you must ensure that ybar
is consistent and y is normally distributed before
determining your p-value.
Problem:
The registrar claims that the mean starting salary of CTI graduates (class of 1999) is $45K. You disagree and believe that CTI graduates got better starting salaries and so the mean is higher than claimed. You select a sample of twenty six from the graduating class and determine that the mean starting salary is $47K with a standard deviation of $4K. Conduct a test of hypotheses.
Solution:
Applying the four step procedure:
H0: my = $45K
Ha: my > $45K
n=26; ybar=$47K and sy=$4K
Since ybar>$45K then ybar is consistent and we may proceed.
n small: mybar =my=45; sybar=sy/sqrt(n-1)=4/sqrt(25)=0.8; t=(47 - 45)/0.8=2.5 hence the t test statistic is 2.5 and from the t-table with df=25 the desired proportion (i.e. the p-value) is between 0.5% and 1%.
Since the p-value is <= 1% then the p-value is highly significant and so we reject H0 and conclude that the mean is higher than claimed (i.e. my > $45K).