Sunteți pe pagina 1din 31

Overview of Statistical Hypothesis Testing Definitions

There are many different hypothesis testing procedures, using one versus another will be based on the exact situation we find ourselves in.
Today we will learn the z-test. The appropriate parametric statistical procedure when there is one sample that is being compared to a population with a known mean (m) and standard deviation (s).

Overview of Statistical Hypothesis Testing


Hypothesis testing is an inferential statistical procedure that takes information from a sample to evaluate hypotheses about a population. Hypothesis testing usually begins with a population with an unknown mean. Often, in hypothesis testing, a treatment is added to a population with a known mean which changes the mean in some unknown way. If an effect occurs, it is to add or subtract a constant to the mean. As an example, perhaps we know the mean GRE score, however, we implement a class that is thought to change GRE scores. The population of GRE scores has a known mean, however the mean of the population of scores after the implementation of the class is unknown.

Overview of Statistical Hypothesis Testing Seven Steps Hypothesis testing involves a seven step procedure: 1. Stating the hypotheses 2. Determine the measurement level 3. Choose the statistical test 4. Specify a significance level and sample size 5 Compute the statistical test 6. Determine the significance of the computed value 7. Interpret and discuss the result

Overview of Statistical Hypothesis Testing Seven Steps Step 1


1. Stating the Hypotheses There are always two hypotheses formed when doing hypothesis testing. They are called the null and alternative hypotheses. The null hypothesis (H0) states that nothing occurs. Implementing a treatment does not change peoples scores. No difference between the means of the treated and untreated populations. The alternative hypothesis (Ha) states that the treatment does have an effect. Implementing a treatment does change peoples scores. The mean of the treated population is different from the mean of the untreated population.

Overview of Statistical Hypothesis Testing Seven Steps Step 1


1. Stating the Hypotheses In numerical terms: H0: mtreated = muntreated Ha: mtreated muntreated Together, these two hypotheses must account for every possible thing that could occur. In this case, either the means are equal or they are not equal. Every possible outcome is covered.

Overview of Statistical Hypothesis Testing Seven Steps Step 1 1. Stating the Hypotheses Hypotheses can be directional or nondirectional. The hypotheses weve just written are nondirectional in that they dont predict what the treatment is going to do, increase or decrease performance. These hypotheses will simply test whether the treated and untreated means are different. If you have a reason to believe what effect the treatment is going to have, you should use directional hypotheses.

Overview of Statistical Hypothesis Testing Seven Steps Step 1


For example, youve created a class that you think will improve GRE scores. Your hypotheses will then read:
H0: mtreated muntreated Ha: mtreated > muntreated The null covers the possibilities that either nothing happened, or the opposite of what I expected happened. Together these hypotheses cover every possible outcome that could occur.

Overview of Statistical Hypothesis Testing Seven Steps Step 2 The level of measurement of your variable determine to a large extent the statistical test you will use to test hypothesis. Parametric statistical test are generally use for interval and ratio level of measurement, while non parametric test are usually applied to nominal and ordinal types

Overview of Statistical Hypothesis Testing Seven Steps Step 3

Choose the statistical test appropriate to the test hypothesis Z test normally large data T test normally few data

Overview of Statistical Hypothesis Testing Seven Steps Step 4


4. Specify a significance level and the sample size Before we can discuss setting a criteria for decision we need to review a little bit. Remember, the shape of the distribution of sample means depends on the s of the original population as well as the sample size (n). Our basic job with hypothesis testing is to look at the original distribution of sample means, and then determine if the treated sample comes from the original distribution of sample means or if it comes from a different distribution of sample means.

Overview of Statistical Hypothesis Testing Seven Steps


Setting the Criteria for a Decision Our job when setting the criteria for decisions is to determine what we feel is a very low probability. This Very low probability is called a and is often set at .05 or .01 by convention.

For problems given in the text or on tests, a is given to you.

Stated in words, if the probability of obtaining a sample mean from the original distribution of sample means is less than a, then we will conclude that the sample came from a different distribution of sample means. a is also known as the region of rejection. That is, if our sample mean falls in this region, we will reject the null hypothesis which states that there is no difference between the means of the treated and untreated population.

A sampling distribution for H0 showing the region of rejection for a = .05 in a 2-tailed z-test.

A sampling distribution for H0 showing the region of rejection for a = .05 in a 1-tailed z-test.

1-tailed region, above mean

A sampling distribution for H0 showing the region of rejection for a = .05 in a 1-tailed z-test where a decrease in the mean is predicted.

1-tailed region, below mean

Overview of Statistical Hypothesis Testing Four Steps Step 5


5. Compute the value of the statistical test. At this stage of hypothesis testing we must decide what z-scores correspond to this region of rejection. Pretend that we were working on the GRE score problem. We want to know the z-scores associated with an unlikely outcome. If we were told that a = .05, then we would need to find the z-score beyond which 5% of the distribution lies. Looking in Table B.1, we find that at a z-score of +1.65, 5% of the scores fall in the tail. If we had been told that a = .01, then a z-score of +2.33 would be needed.

Overview of Statistical Hypothesis Testing Seven Steps


6. Setting the Criteria for a Decision If we were using nondirectional hypotheses, we would need to split the region of rejection into both tails. That is, when using nondirectional hypotheses, an extreme sample mean in either direction would be important. If we were using nondirectional hypotheses, and a was set at .05, then we would have two critical z-score values. If the z-score from the sample was greater than 1.96 or less than -1.96 then it would fall into the most extreme 5%, 2.5% in each end. Likewise, if a=.01 for nondirectional hypotheses, then the critical z-scores would be +2.58 and -2.58, these separate the most extreme 1%, % in each tail.

Overview of Statistical Hypothesis Testing Seven Steps Step 7


7. Evaluating the Null Hypothesis (H0) Using the information we have, we will evaluate the merits of our hypotheses. Does the z-score from the treated sample fall in the region of rejection. If so, then we would reject H0 and conclude that the treatment did have an effect. If not, then we would fail to reject H0 and conclude that the evidence does not support the idea that the treatment had an effect.

If P < 0.05, the observed difference is SIGNIFICANT (Statistically) P< 0.01, sometimes termed as Highly Significant

INTERPRETATION OF SIGNIFICANCE

SIGNIFICANT

Does not necessarily mean that the observed difference is REAL or IMPORTANT. Only that it is unlikely

(< 5%) to be due to chance.

INTERPRETATION OF NON - SIGNIFICANCE


NON - SIGNIFICANT Does not necessarily mean that there is no real difference; it means only that the observed difference could easily be due to chance (Probability of at least 5%)

Determine The Hypothesis: Whether There is an Association or Not


Write down the NULL HYPOTHESIS and ALTERNATIVE HYPOTHESIS and set the LEVEL OF SIGNIFICANCE. Ho : The two variables are independent Ha : The two variables are associated We will set the level of significance at 0.05.

For Example
Some null hypotheses may be:
there is no relationship between the height of the land and the vegetation cover. there is no difference in the location of superstores and small grocers shops there is no connection between the size of farm and the type of farm

Statistical Hypothesis Testing z-test Example

I am a dog food manufacturer, I have created new Super Vitamin Enriched Puppy Chow, specially designed for the active and growing Doberman Pincer. I want to run a commercial advertising the effectiveness of my food. I know that the average weight (m) of adult Dobermans is 35.8 kg (s = 6.2 kg) I took a sample of 10 Doberman puppies and fed them nothing but my Super Vitamin Enriched Puppy Chow. When these dogs reached adulthood, they weighed 39.7 kg on average (M). Did my Puppy Chow make them grow especially big, test with a = .05?

Statistical Hypothesis Testing z-test Example Step 1 State the Hypotheses


H0: The puppy chow did not make the dogs grow any more than normal. Ha: The puppy chow did make the dogs grow larger then normal H0: mchow mall Ha: mchow > mall Notice that this is a one-tailed test, I predict that the Chow will make the dogs grow, not shrink.

Statistical Hypothesis Testing z-test Example Step 2 Setting the Criteria for Decision
A very unlikely sample in this case is one which occurs less than 5% of the time by random chance. Looking in Table 1, we find that the z-score which sets off the top 5% of the distribution is 1.645. Therefore, zcrit = +1.645 This value defines my region of rejection. If my zobt falls anywhere in this region of rejection, then we will reject H0.

Statistical Hypothesis Testing z-test Example Step 3 Collecting Sample Data

6.2 sX 1.961 n 10
zobt X m

sX

39.7 35.8 1.99 1.961

Statistical Hypothesis Testing z-test Example Step 4 Evaluating the Null Hypothesis
zobt > zcrit The zobt falls in the region of rejection. We will reject H0 and conclude that the Super Vitamin Enriched Puppy Chow makes Doberman Pincers grow significantly larger. I can safely go ahead with my advertising campaign!

Hypothesis Testing Large Samples 1. A random sample of 100 people in the city revealed that tennis is played, on the average, 1.2 hours per week during the summer. The population standard deviation is .4 hours for all people in the United States. Test whether this sample indicates that the number of hours tennis is played in this city differs from the national average of 1.1 hours. Use a =.01.

1. H O : m 1.1 H A : m 1.1

2. Two tail z test n > 30 known s

3. .005
.495 .495
-2.57

.005 2.57

x m 1.2 1.1 4. z 2.5 .4 SE 100

5. Fail to reject, there is not enough evidence at the .01 level to show that the average hours are different.

Hypothesis Testing Large Samples


2. The population of all minority workers has a mean wage of $14,500 with a standard deviation of $200.00. Test whether a sample of 100 having an average of $14,300 and a= .05 differs from the population average.
1. H O : m $14,500 2. Two tail z test 3. n > 30 known s H A : m $14,500

.025

.025

.475 .475
-1.96 1.96

x m 14,300 14,500 4. z 10 200 SE 100

5. Reject HO at the .05 level. There is evidence that the salaries are different.

Hypothesis Testing Large Samples


3. A new bus route has been established. For the old route, the average waiting time was 18.3 minutes. However, a random sample of 40 waiting times between buses using the new route had a mean of 15.1 minutes with a sample standard deviation of 6.2 minutes. Does this indicate that the new route is different from the old route? Use a = .05.

1. H O : m 18.3 H A : m 18.3

2. Two tail z test n > 30

3. .025
.475 .475
-1.96

.025 1.96

x m 15.1 18.3 4. z 3.27 6.2 SE 40

5. Reject HO at the .05 level. There is evidence that the new route is different.

S-ar putea să vă placă și