The onesample Z test is used when we want to know whether our sample comes from a particular population. For instance, we are doing research on data collected from successive cohorts of students taking the Elementary Statistics class. We may want to know if this particular sample of college students is similar to or different from college students in general. The onesample Z test is used only for tests of the sample mean. Thus, our hypothesis tests whether the average of our sample (M) suggests that our students come from a population with a know mean (m) or whether it comes from a different population.


The name of the onesample Z test tells us the general research design of studies in which this statistic is selected to test hypotheses. We use the onesample Z test when we collect data on a single sample drawn from a defined population. In this design, we have one group of subjects, collect data on these subjects and compare our sample statistic (M) to the population parameter (m). The population parameter tells us what to expect if our sample came from that population. If our sample statistic is very different (beyond what we would expect from sampling error), then our statistical test allows us to conclude that our sample came from a different population. Again, in the onesample Z test, we are comparing the mean (M) calculated on a single set of scores (one sample) to a known population mean (m).
The onesample Z test compares a sample to a defined population. When we say "defined" population, we are saying that the parameters of the population are known. We typically define a population distribution in terms of central tendency and variability/dispersion. Thus, for the onesample Z test, the population m and s must be known. The onesample Z test cannot be done if we do not have m and s. Population information is available in the technical manuals of measurement instruments or in research publications. Population information for the attachment scales used in the class dataset is available in the articles on reserve.
All parametric statistics have a set of assumptions that must be met in order to properly use the statistics to test hypotheses. The assumptions of the onesample Z test are listed below.
Random sampling from a defined population  
Interval or ratio scale of measurement  
Population is normally distributed 
When reading the psychological literature, we can find many studies in which all of these assumptions are violated. Random sampling is required for all statistical inference because it is based on probability. Random samples are difficult to find, however, and psychologists and researchers in other fields will use inferential statistics but discuss the sampling limitations in the article. We learned in our scale of measurement tutorial that psychologists will apply parametric statistics like the Z test on approximately interval scales even though the tests require interval or ratio data. This is an accepted practice in psychology and one that we use when we analyze our class data. Finally, the assumption of normal distribution in the population is considered "robust". This means that the the statistic has been shown to yield useful results even when the assumption is violated. The central limit theorem tells us that even if the population distribution is unknown, we know that the sampling distribution of the mean will be approximately normally distributed if the sample size is large. This helps to contribute to the Z test being robust for violations of normal distribution.
Click here to review the onesample ttest:  
Click here to review the ttest for dependent means:  
Click here to review the ttest for independent means:  
Click here to return to the main page: 