Documentation/How Tos/Calc: ZTEST function
From Apache OpenOffice Wiki
ZTEST
Returns the result of a z-test.
Syntax:
ZTEST(data; μ σ)
- data is a range or array containg a random sample from a population (population assumed to have a normal distribution).
- μ is the (known) mean of the population.
- σ is the (known) standard deviation of the population. If omitted, it is estimated from the sample data by STDEV(data).
- and returns 1 - NORMSDIST(z).
Example:
ZTEST(A2:A20; 9; 2)
- returns the result of a z-test on a smaple A2:A20 drawn from a population with known mean 9 and known standard deviation 2.
See also:
Issues:
- The validity of this measure is not clear; see for example the draft ODFF standard 16May08, and that Excel has referred to this as both a one-tailed and a two-tailed test.