## What is a 'Z-Test'

A z-test is a statistical test used to determine whether two population means are different when the variances are known and the sample size is large. The test statistic is assumed to have a normal distribution, and nuisance parameters such as standard deviation should be known for an accurate z-test to be performed.

Next Up

## BREAKING DOWN 'Z-Test'

A one-sample location test, two-sample location test, paired difference test and maximum likelihood estimate are examples of tests that can be conducted as z-tests. Z-tests are closely related to t-tests, but t-tests are best performed when an experiment has a small sample size. Also, t-tests assume the standard deviation is unknown, while z-tests assume it is known. If the standard deviation of the population is unknown, the assumption of the sample variance equaling the population variance is made.

## Hypothesis Test

The z-test is a hypothesis test in which the z-statistic follows a normal distribution. The z-test is best used for greater than 30 samples because, under the central limit theorem, as the number of samples gets larger, the samples are considered to be approximately normally distributed. When conducting a z-test, the null and alternative hypotheses, alpha and z-score should be stated. Next, the test statistic should be calculated, and the results and conclusion stated.

## One-Sample Z-Test Example

For example, assume an investor wishes to test whether the average daily return of a stock is greater than 1%. A simple random sample of 50 returns is calculated and has an average of 2%. Assume the standard deviation of the returns is 2.50%. Therefore, the null hypothesis is when the average, or mean, is equal to 3%. Conversely, the alternative hypothesis is whether the mean return is greater than 3%. Assume an alpha of 0.05% is selected with a two-tailed test. Consequently, there is 0.025% of the samples in each tail, and the alpha has a critical value of 1.96 or -1.96. If the value of z is greater than 1.96 or less than -1.96, the null hypothesis is rejected.

The value for z is calculated by subtracting the value of the average daily return selected for the test, or 1% in this case, from the observed average of the samples. Next, divide the resulting value by the standard deviation divided by the square root of the number of observed values. Therefore, the test statistic is calculated to be 2.83, or (0.02 - 0.01) / (0.025 / (50)^(1/2)). The investor rejects the null hypothesis since z is greater than 1.96 and concludes the average daily return is greater than 1%.

RELATED TERMS
1. ### T-Test

A statistical examination of two population means. A two-sample ...
2. ### Sampling

A process used in statistical analysis in which a predetermined ...
3. ### Null Hypothesis

A null hypothesis is a type of hypothesis used in statistics ...
4. ### Sample

A sample is a smaller, manageable version of a larger group. ...
5. ### Standard Error

Standard error is the approximate standard deviation of a statistical ...
6. ### T Distribution

A T distribution is a type of probability function that is appropriate ...
Related Articles
1. Investing

### Why Standard Deviation Should Matter to Investors

Think of standard deviation as a thermometer for risk, or better yet, anxiety.
2. Investing

### Optimize your portfolio using normal distribution

Normal or bell curve distribution can be used in portfolio theory to help portfolio managers maximize return and minimize risk.
3. Investing

### 5 Ways To Measure Mutual Fund Risk

These statistical measures help investors understand investment risk and how it relates to returns.

### Improve your investing with Excel

Excel is a useful tool to assist with investment organization and evaluation. Find out how to use it.
5. Investing

### PRHSX: Risk Statistics of Health Sciences Mutual Fund

Examine the risk metric of the T. Rowe Price Health Sciences Fund. Analyze beta, capture ratios and standard deviation to assess volatility and systematic risk.
6. Investing

### Redefining Investor Risk

Changing the way you think about time and risk can change the way you invest.
7. Investing

### Find the right fit with probability distributions

Discover a few of the most popular probability distributions and how to calculate them.
8. Investing

### Calculating Tracking Error

Tracking error is the difference between the return on a portfolio or fund, and the benchmark it is expected to mirror (or track).
9. Insights

### Which Consumer Genetic Tests Are FDA-Approved?

Now you can get some genetic tests without going to a doctor. Should you?
10. Personal Finance

### Top 20 Countries With the Highest GMAT Scores

A total of 42 countries had higher average scores than the U.S. in the last testing year.
RELATED FAQS
1. ### What percentage of the population do you need in a representative sample?

Learn about representative samples and how they are used in conjunction with other strategies to create useful data with ... Read Answer >>
2. ### What are the advantages of using a simple random sample to study a larger population?

Learn how simple random sampling works and what advantages it offers over other sampling methods when selecting a research ... Read Answer >>

4. ### What is the difference between standard deviation and average deviation?

Understand the basics of standard deviation and average deviation, including how each is calculated and why standard deviation ... Read Answer >>
5. ### What are the disadvantages of using a simple random sample to approximate a larger ...

Learn what a simple random sample is, how researchers use it as a statistical tool and the disadvantages it carries when ... Read Answer >>
6. ### What's An Example of Stratified Random Sampling?

Stratified random sampling divides a population into subgroups or strata, whereby the members in each of the stratum formed ... Read Answer >>
Hot Definitions
1. ### Working Capital

Working capital, also known as net working capital is a measure of a company's liquidity and operational efficiency.
2. ### Bond

A bond is a fixed income investment in which an investor loans money to an entity (corporate or governmental) that borrows ...
3. ### Compound Annual Growth Rate - CAGR

The Compound Annual Growth Rate (CAGR) is the mean annual growth rate of an investment over a specified period of time longer ...
4. ### Net Present Value - NPV

Net Present Value (NPV) is the difference between the present value of cash inflows and the present value of cash outflows ...
5. ### Price-Earnings Ratio - P/E Ratio

The Price-to-Earnings Ratio or P/E ratio is a ratio for valuing a company that measures its current share price relative ...
6. ### Internal Rate of Return - IRR

Internal Rate of Return (IRR) is a metric used in capital budgeting to estimate the profitability of potential investments.