Z-test: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
Tags: mobile edit mobile web edit
 
CSV import
 
Line 1: Line 1:
'''Z-test'''
{{DISPLAYTITLE: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 Z-test has a single outcome variable of interest, and the population from which samples are drawn should be normally distributed.
== Z-test ==
 
[[File:Null-hypothesis-region-eng.png|thumb|right|300px|Illustration of the null hypothesis region in a Z-test.]]
 
The '''Z-test''' is a type of [[statistical test]] that determines if there is a significant difference between the means of two groups. It is used when the [[population variance]] is known and the sample size is large (typically n > 30). The Z-test is based on the [[standard normal distribution]] and is commonly used in hypothesis testing.
 
== Hypothesis Testing ==
 
In hypothesis testing, the Z-test is used to test the [[null hypothesis]] (H_) against an [[alternative hypothesis]] (H_). The null hypothesis typically states that there is no effect or no difference, while the alternative hypothesis suggests that there is an effect or a difference.
 
The test statistic is calculated using the formula:
 
: Z = \( \frac{\bar{x} - \mu}{\sigma/\sqrt{n}} \)
 
where:
* \( \bar{x} \) is the sample mean,
* \( \mu \) is the population mean,
* \( \sigma \) is the population standard deviation,
* \( n \) is the sample size.
 
== Critical Region ==
 
The critical region is determined by the significance level (_), which is the probability of rejecting the null hypothesis when it is true. Common significance levels are 0.05, 0.01, and 0.10. The critical value is found from the standard normal distribution table.
 
If the calculated Z value falls into the critical region, the null hypothesis is rejected in favor of the alternative hypothesis.


== Assumptions ==
== Assumptions ==
The Z-test assumes that the data points are independent of each other. In other words, the occurrence of one data point does not affect the occurrence of another data point. The Z-test also assumes that the data are normally distributed, but as the sample size gets larger, the Z-test becomes less sensitive to normality thanks to the Central Limit Theorem.


== Types of Z-tests ==
The Z-test assumes that:
There are several types of Z-tests, including:
* The data follows a normal distribution.
* '''One-sample Z-test''': This test is used when you want to know whether your sample comes from a particular population.
* The sample size is large enough for the Central Limit Theorem to apply.
* '''Two-sample Z-test''': This test is used when you want to know whether two samples come from the same population.
* The population variance is known.
* '''Paired Z-test''': This test is used when you have paired data.
 
== Applications ==


== Z-score ==
Z-tests are used in various fields such as [[medicine]], [[psychology]], and [[economics]] to compare sample data against known population parameters. They are particularly useful in quality control and [[clinical trials]].
The '''Z-score''' is a measure of how many standard deviations an element is from the mean. It is calculated by subtracting the population mean from an individual raw score and then dividing the difference by the population standard deviation.


== See also ==
== Related Pages ==
* [[Statistical hypothesis testing]]
* [[Student's t-test]]
* [[Central Limit Theorem]]


== References ==
* [[T-test]]
<references />
* [[Chi-squared test]]
* [[ANOVA]]
* [[P-value]]
* [[Confidence interval]]


[[Category:Statistical tests]]
[[Category:Statistical tests]]
[[Category:Normal distribution]]
{{stub}}

Latest revision as of 11:11, 15 February 2025


Z-test[edit]

Illustration of the null hypothesis region in a Z-test.

The Z-test is a type of statistical test that determines if there is a significant difference between the means of two groups. It is used when the population variance is known and the sample size is large (typically n > 30). The Z-test is based on the standard normal distribution and is commonly used in hypothesis testing.

Hypothesis Testing[edit]

In hypothesis testing, the Z-test is used to test the null hypothesis (H_) against an alternative hypothesis (H_). The null hypothesis typically states that there is no effect or no difference, while the alternative hypothesis suggests that there is an effect or a difference.

The test statistic is calculated using the formula:

Z = \( \frac{\bar{x} - \mu}{\sigma/\sqrt{n}} \)

where:

  • \( \bar{x} \) is the sample mean,
  • \( \mu \) is the population mean,
  • \( \sigma \) is the population standard deviation,
  • \( n \) is the sample size.

Critical Region[edit]

The critical region is determined by the significance level (_), which is the probability of rejecting the null hypothesis when it is true. Common significance levels are 0.05, 0.01, and 0.10. The critical value is found from the standard normal distribution table.

If the calculated Z value falls into the critical region, the null hypothesis is rejected in favor of the alternative hypothesis.

Assumptions[edit]

The Z-test assumes that:

  • The data follows a normal distribution.
  • The sample size is large enough for the Central Limit Theorem to apply.
  • The population variance is known.

Applications[edit]

Z-tests are used in various fields such as medicine, psychology, and economics to compare sample data against known population parameters. They are particularly useful in quality control and clinical trials.

Related Pages[edit]