Questions tagged [z-test]

The z-test is a statistical test for hypothesis testing that uses the standard normal distribution as the sampling distribution of the test statistic. A common example is the test for the difference of two proportions.

The z-test is a statistical test for hypothesis testing that uses the standard normal distribution as the sampling distribution of the test statistic. A common example is the test for the difference of two proportions, but this is not the only possibility. Let $X = X_1, X_2, ..., X_n$ be iid with mean $\mu$ and standard deviation $\sigma$. A z-test for the null hypothesis $H_0: \mu = \mu_0$ is

$$Z = \frac{\bar{X}-\mu_0}{\sigma / \sqrt{n}}$$

which is distributed as a standard normal. The null is rejected at the 95\% level of significance if $|Z|>1.96$. Or equivalently reject if $|\bar{X} - \mu_0|>1.96\sigma / \sqrt{n}$, i.e. if $\bar{X}$ is more than 1.96 standard errors away from $\mu_0$. Unlike the t-test, the critical values for the z-test are independent of the sample size which makes it convenient to use. However, the z-test depends on the knowledge about the population variance. So the t-test may still be preferred if the sample size is small or when the population variance is unknown (when $\sigma$ must be estimated).

341 questions
2
votes
1 answer

One-Sample z-Test

this is a really simple problem but I'm still in doubt about the solution. There's a population of workers and the goal is to see whether the rate of illegal workers has dropped to 20%. I have a sample of n=100 and the proportion of illegals is 30%.…
2
votes
0 answers

Z-test question: why variance between population and sample assumed as equal?

Example from Wikipedia: Suppose that in a particular geographic region, the mean and standard deviation of scores on a reading test are 100 points, and 12 points, respectively. Our interest is in the scores of 55 students in a particular…
German Demidov
  • 1,731
  • 13
  • 27
2
votes
0 answers

How to compare two PROPORTIONS if you don't have 'n'?

Have data in this format: | A | A' | B | B' | |-----|-----|-----|-----| | 0.4 | 0.2 | 0.4 | 0.3 | | 0.3 | 0.3 | 0.3 | 0.5 | | 0.1 | 0.2 | 0.6 | 0.2 | Note that A + A' =/= 1. In other words, we have a given proportion, A, another proportion,…
vdiddy
  • 21
1
vote
1 answer

How to check normality of a binary data(True/False) for z proportion test?

One of the three conditions that should be checked before conducting two-sampled z-test for proportions is "check for normality"(link for the source: https://vitalflux.com/two-sample-z-test-for-proportions-formula-examples/). But how can we check…
1
vote
1 answer

Are there any problems with using an average of percentages for a 2 proportion z-test?

Let's say I have a 2 groups of test scores (ranging from 0% to 100%), and I wanted to compare their means to see if there was anything significant. I know I can average the test scores to obtain a proportion for each sample. Can I safely use a 2…
1
vote
0 answers

Z-test for comparing two estimator values?

My supervisor asked me to compare values of Pohar Perme estimator of net survival in two regions of the country using Z-test. Am I right that we cannot use Z-test for comparing these estimator values? Pohar Perme estimator of net survival is defined…
Harel
  • 11
  • 1
1
vote
0 answers

How do I interpret a negative Z-test (two tailed for 2 proportions)?

I used my calculator to do a two tailed Z test for two proportions. Here's the data I input: X1 is 834 n1 is 3610 X2 is 145 n2 is 495 I chose p1 not equal to p2 I set alpha to 0.05 My hypotheses are: $H_0: \pi_1= \pi_2$ $H_a: \pi_1 \neq…
JHB
  • 11
1
vote
2 answers

Z-test and sampling distribution

The basic trick behind the z-test is the "sampling distribution". The "sampling distribution" is the distribution of all means of all samples. So what we are interested is: if the population means of the two groups really differs. H0 - the two…
0
votes
1 answer

Comparing z-values

If a test-statistics is expressed in z-values (instead of, for example, t-values), would it be appropriate to use those values for some further inferences? For example, to average a pair and another pair, to compare the difference between them and…
striatum
  • 121
  • 6
0
votes
1 answer

Can I use a two proportion z-test if large counts isn't met but the population is normal?

I know that if the number of successes and failures are all greater than 10, the sampling distribution would be approximately normal. However, if one of the failures are not equal to ten, but it is stated that the population is normal, can I still…
0
votes
0 answers

2-Proportion Z-Test

I want to compare, with 2-proportion Z-Test, the number of student visits to school nurse office in Q1 of 2015 to Q2 of 2015. What do I use for sample size for Q1 and Q2 when it’s different each month because of new students or students who drop?
Harper
  • 315
0
votes
1 answer

Z-test with a lot of null values

I have a question concerning the validity of my email tests. I'm testing different email variations (between 2 and 4 variations usually) with different groups of members (hundreds of thousands members per group) and I'm measuring the revenue per…
ClydeX
  • 1
0
votes
0 answers

Z test could be a good choice ? and z-test for multiple samples?

I've two samples with mean value $\mu $ and standard deviation $\sigma$ (normal distribution). Can I use a Z-test to compare them ? Also if I don't know the sample size ? If I've five samples to compare ..what do I do ? A z-test for each comparison…
Terenz
  • 23