How to Use the ZTEST Function in Excel

Welcome to the comprehensive guide on how to use the ZTEST function in Microsoft Excel and Google Sheets. This function calculates the one-tailed (right-tailed) probability of a Z-test for a specified value within a given data set, which is crucial when performing hypothesis testing to determine if there is a significant difference between the means of two data sets.

Syntax

The syntax for the ZTEST function is consistent across both Excel and Google Sheets:

ZTEST(array, x, [sigma])
  • array: A range of data representing the entire population or sample.
  • x: The value or mean of the sample to test against the array.
  • sigma: (Optional) Specifies the population standard deviation. If not provided, the sample standard deviation will be used as an estimate of the population standard deviation.

Example Use Cases

Example 1: Hypothesis Testing

Let’s consider an example involving two different marketing campaigns. Suppose you need to analyze whether there is a significant difference in the conversion rates between these campaigns. Here’s an application of the ZTEST function:

Campaign A 10 15 12 18 14
Campaign B 20 25 22 28 24

Assuming equal variances, you may utilize the ZTEST function to assess if the mean conversion rate of Campaign A is statistically different from that of Campaign B:

=ZTEST({10,15,12,18,14},{20,25,22,28,24})

The function will return the probability that the means are significantly different, thus helping you to accept or reject the null hypothesis.

Example 2: Quality Control

Consider a scenario where a production line must maintain package weights at precisely 500 grams to ensure quality. The ZTEST function can help verify the calibration of the packaging machine:

Weights 498 505 502 499 503
=ZTEST({498,505,502,499,503},500)

This output will indicate the probability that the mean weight significantly deviates from 500 grams, which is essential for making adjustments to the calibration of the machine.

These examples highlight the flexibility and effectiveness of the ZTEST function in executing various statistical analyses in Excel and Google Sheets.

More information: https://support.microsoft.com/en-us/office/ztest-function-8f33be8a-6bd6-4ecc-8e3a-d9a4420c4a6a

Other functions
Returns the beta cumulative distribution function
Vrátí hodnotu součtového rozdělení beta
Returns the inverse of the cumulative distribution function for a specified beta distribution
Vrátí inverzní hodnotu součtového rozdělení pro zadané rozdělení beta
Gibt die Werte der kumulierten Betaverteilungsfunktion zurück
Returns the individual term binomial distribution probability
Vrátí hodnotu binomického rozdělení pravděpodobnosti jednotlivých veličin
Gibt Wahrscheinlichkeiten einer binominalverteilten Zufallsvariablen zurück
Returns the one-tailed probability of the chi-squared distribution
Vrátí jednostrannou pravděpodobnost rozdělení chí-kvadrát
Returns the inverse of the one-tailed probability of the chi-squared distribution
Vrátí hodnotu funkce inverzní k distribuční funkci jednostranné pravděpodobnosti rozdělení chí-kvadrát
Returns the test for independence
Vrátí test nezávislosti
Returns the confidence interval for a population mean
Vrátí interval spolehlivosti pro střední hodnotu základního souboru
Returns covariance, the average of the products of paired deviations
Vrátí hodnotu kovariance, průměrnou hodnotu součinů párových odchylek
Returns the smallest value for which the cumulative binomial distribution is less than or equal to a criterion value
Vrátí nejmenší hodnotu, pro kterou má součtové binomické rozdělení hodnotu větší nebo rovnu hodnotě kritéria
Returns the exponential distribution
Vrátí hodnotu exponenciálního rozdělení
Returns the F probability distribution
Vrátí hodnotu rozdělení pravděpodobnosti F
Rounds a number down, toward zero
Returns the result of an F-test
Vrátí výsledek F-testu
Vrátí hodnotu Studentova t-rozdělení
Returns the gamma distribution
Vrátí hodnotu rozdělení gama
Returns the inverse of the gamma cumulative distribution
Vrátí hodnotu inverzní funkce k distribuční funkci součtového rozdělení gama
Returns the hypergeometric distribution
Vrátí hodnotu hypergeometrického rozdělení
Returns the inverse of the lognormal cumulative distribution
Returns the cumulative lognormal distribution
Returns the most common value in a data set
Vrátí hodnotu, která se v množině dat vyskytuje nejčastěji
Returns the negative binomial distribution
Vrátí hodnotu negativního binomického rozdělení
Returns the inverse of the normal cumulative distribution
Vrátí inverzní funkci k funkci normálního součtového rozdělení
Returns the normal cumulative distribution
Vrátí hodnotu normálního součtového rozdělení
Returns the standard normal cumulative distribution
Vrátí hodnotu standardního normálního součtového rozdělení
Returns the inverse of the standard normal cumulative distribution
Vrátí inverzní funkci k funkci standardního normálního součtového rozdělení
Vrátí hodnotu k-tého percentilu hodnot v oblasti
Returns the k-th percentile of values in a range
Returns the percentage rank of a value in a data set
Vrátí pořadí hodnoty v množině dat vyjádřené procentuální částí množiny dat
Returns the Poisson distribution
Vrátí hodnotu distribuční funkce Poissonova rozdělení
Vrátí hodnotu kvartilu množiny dat
Returns the quartile of a data set
Returns the rank of a number in a list of numbers
Vrátí pořadí čísla v seznamu čísel
Vypočte směrodatnou odchylku základního souboru
Vypočte směrodatnou odchylku výběru
Estimates standard deviation based on a sample
Calculates standard deviation based on the entire population
Returns the Student's t-distribution
Returns the inverse of the Student's t-distribution
Vrátí inverzní funkci k distribuční funkci Studentova t-rozdělení
Returns the probability associated with a Student's t-test
Vrátí pravděpodobnost spojenou se Studentovým t-testem
Estimates variance based on a sample
Vypočte rozptyl základního souboru
Vypočte rozptyl výběru
Calculates variance based on the entire population
Calculates variance based on the entire population, including numbers, text, and logical values
Vypočte rozptyl základního souboru včetně čísel, textu a logických hodnot
Zaokrouhlí číslo dolů, směrem k nule
Vrátí jednostrannou hodnotu pravděpodobnosti z-testu