What is a Single Sample Z Test?
-
Upload
ken-plummer -
Category
Education
-
view
82 -
download
2
description
Transcript of What is a Single Sample Z Test?
Single-Sample Z TestTheoretical Explanation
A one-sample Z-test for proportions is a test that helps us compare a population proportion with a sample proportion.
A one-sample Z-test for proportions is a test that helps us compare a population proportion with a sample proportion.
30% Sample Mean
()
30% Population Mean
A one-sample Z-test for proportions is a test that helps us compare a population proportion with a sample proportion.
This is the symbol for a sample
mean
30% Sample Mean
()
30% Population Mean
A one-sample Z-test for proportions is a test that helps us compare a population proportion with a sample proportion.
And this is the symbol for a
population mean (called a mew)
30% Sample Mean
()
30% Population Mean
A one-sample Z-test for proportions is a test that helps us compare a population proportion with a sample proportion.
Here is our question:
30% Sample Mean
()
30% Population Mean
A one-sample Z-test for proportions is a test that helps us compare a population proportion with a sample proportion.
Here is our question: Are the population and the sample proportions (which supposedly have the same general characteristics as the population) statistically significantly the same or different?
30% Sample Mean
()
30% Population Mean
Consider the following example:
Consider the following example:A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82 indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Consider the following example:
Which is the sample?
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82 indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Consider the following example:
Which is the sample? What is the population?
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82 indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Consider the following example:
Which is the sample? What is the population?The sample proportion is .82 doctors recommending aspirin.
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82 indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Consider the following example:
Which is the sample? What is the population?The sample proportion is .82 of doctors recommending aspirin.The population proportion .90 (the claim that 9 out of 10 doctors recommend aspirin).
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82 indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
We begin by stating the null hypothesis:
We begin by stating the null hypothesis:The proportion of a sample of 100 medical doctors who recommend aspirin for their patients with headaches IS NOT statistically significantly different from the claim that 9 out of 10 doctors recommend aspirin for their patients with headaches.
We begin by stating the null hypothesis:
The alternative hypothesis would be:
The proportion of a sample of 100 medical doctors who recommend aspirin for their patients with headaches IS NOT statistically significantly different from the claim that 9 out of 10 doctors recommend aspirin for their patients with headaches.
We begin by stating the null hypothesis:
The alternative hypothesis would be:
The proportion of a sample of 100 medical doctors who recommend aspirin for their patients with headaches IS NOT statistically significantly different from the claim that 9 out of 10 doctors recommend aspirin for their patients with headaches.
The proportion of a sample of 100 medical doctors who recommend aspirin for their patients with headaches IS statistically significantly different from the claim that 9 out of 10 doctors recommend aspirin for their patients with headaches.
State the decision rule:
State the decision rule: We will calculate what is called the z statistic which will make it possible to determine the likelihood that the sample proportion (.82) is a rare or common occurrence with reference to the population proportion (.90).
State the decision rule: We will calculate what is called the z statistic which will make it possible to determine the likelihood that the sample proportion (.82) is a rare or common occurrence with reference to the population proportion (.90).
If the z-statistic falls outside of the 95% common occurrences and into the 5% rare occurrences then we will conclude that it is a rare event and that the sample is different from the population and therefore reject the null hypothesis.
Before we calculate this z-statistic, we must locate the z critical values.
Before we calculate this z-statistic, we must locate the z critical values.
What are the z critical values? These are the values that demarcate what is the rare and the common occurrence.
Letβs look at the normal distribution:
It has some important properties that make it possible for us to locate the z statistic and compare it to the z critical.
Here is the mean and the median of a normal distribution.
50% of the values are above and below the orange line.
50% - 50% +
68% of the values fall between +1 and -1 standard deviations from the mean.
34% - 34% +
68% of the values fall between +1 and -1 standard deviations from the mean.
34% - 34% +
68%
mean-1Ο +1Ο
68% of the values fall between +1 and -1 standard deviations from the mean.
34% - 34% +
95%
mean-1Ο +1Ο-2Ο +2Ο
Since our decision rule is .05 alpha, this means that if the z value falls outside of the 95% common occurrences we will consider it a rare occurrence.
34% - 34% +
95%
mean-1Ο +1Ο-2Ο +2Ο
Since are decision rule is .05 alpha we will see if the z statistic is rare using this visual
95%
mean-1Ο +1Ο-2Ο +2Ο
2.5% 2.5%
rarerare
Or common
95%
mean-1Ο +1Ο-2Ο +2Ο
Common
Before we can calculate the z β statistic to see if it is rare or common we first must determine the z critical values that are associated with -2Ο and +2Ο.
95%
mean-1Ο +1Ο-2Ο +2Ο
Common
We look these up in the Z table and find that they are -1.96 and +1.96
95%
mean-1Ο +1Ο-2Ο +2Ο
Common
-1.96 +1.96Z values
So if the z statistic we calculate is less than -1.96 (e.g., -1.99) or greater than +1.96 (e.g., +2.30) then we will consider this to be a rare event and reject the null hypothesis and state that there is a statistically significant difference between .9 (population) and .82 (the sample).
So if the z statistic we calculate is less than -1.96 (e.g., -1.99) or greater than +1.96 (e.g., +2.30) then we will consider this to be a rare event and reject the null hypothesis and state that there is a statistically significant difference between .9 (population) and .82 (the sample).
Letβs calculate the z statistic and see where if falls!
So if the z statistic we calculate is less than -1.96 (e.g., -1.99) or greater than +1.96 (e.g., +2.30) then we will consider this to be a rare event and reject the null hypothesis and state that there is a statistically significant difference between .9 (population) and .82 (the sample).
Letβs calculate the z statistic and see where if falls!
We do this by using the following equation:
So if the z statistic we calculate is less than -1.96 (e.g., -1.99) or greater than +1.96 (e.g., +2.30) then we will consider this to be a rare event and reject the null hypothesis and state that there is a statistically significant difference between .9 (population) and .82 (the sample).
Letβs calculate the z statistic and see where if falls!
We do this by using the following equation:π πππππππππ=
οΏ½ΜοΏ½βπ
βπ (1βπ)π
So if the z statistic we calculate is less than -1.96 (e.g., -1.99) or greater than +1.96 (e.g., +2.30) then we will consider this to be a rare event and reject the null hypothesis and state that there is a statistically significant difference between .9 (population) and .82 (the sample).
Letβs calculate the z statistic and see where if falls!
We do this by using the following equation:
Zstatistic is what we are trying to find to see if it is outside or inside the z critical values (-1.96 and +1.96).
π πππππππππ=οΏ½ΜοΏ½βπ
βπ (1βπ)π
Hereβs the problem again:
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
π πππππππππ=οΏ½ΜοΏ½βπ
βπ (1βπ)π
π πππππππππ=οΏ½ΜοΏ½βπ
βπ (1βπ)π
Note β this little hat () over the p means that this proportion is an
estimate of a population
(.90)
π πππππππππ=οΏ½ΜοΏ½βπ
βπ (1βπ)π
π πππππππππ=οΏ½ΜοΏ½βπ
βπ (1βπ)π
(100)
π πππππππππ=οΏ½ΜοΏ½βπ
βπ (1βπ)π
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
(100)
π πππππππππ=οΏ½ΜοΏ½βπ
βπ (1βπ)π
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
(100)
π πππππππππ=οΏ½ΜοΏ½βπ
βπ (1βπ)π
Letβs plug in the numbers
π πππππππππ=.82βπ
βπ (1βπ)π
Sample Proportion
π πππππππππ=.82βπ
βπ (1βπ)π
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Sample Proportion
π πππππππππ=.82βπ
βπ (1βπ)π
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Sample Proportion
π πππππππππ=.82β .90
β .90(1β .90)π
Population Proportion
π πππππππππ=.82β .90
β .90(1β .90)π
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Population Proportion
π πππππππππ=.82β .90
β .90(1β .90)π
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Population Proportion
The difference
π πππππππππ=.82β .90
β .90(1β .90)π
π πππππππππ=β .08
β .90(1β .90)π
The difference
Now for the denominator which is the estimated standard error. This value will help us know how many standard error units .82 and .90 are apart from one another (we already know they are .08 raw units apart)
π πππππππππ=β .08
β .90(1β .90)π
Now for the denominator which is the estimated standard error. This value will help us know how many standard error units .82 and .90 are apart from one another (we already know they are .08 raw units apart)
π πππππππππ=β .08
β .90(1β .90)π
Note - If the standard error is small then the z statistic will be larger. The larger the z statistics the more likely that it will exceed the -1.96 or +1.96 boundaries, compelling us to reject the null hypothesis. If it is smaller than we will not.
π πππππππππ=β .08
β .90(1β .90)π
Letβs continue our calculations and find out:
π πππππππππ=β .08
β .90(1β .90)π
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Letβs continue our calculations and find out:
π πππππππππ=β .08
β .90( .10)π
Letβs continue our calculations and find out:
π πππππππππ=β .08
β .09π
Letβs continue our calculations and find out:
π πππππππππ=β .08
β .09100
Sample Size:
π πππππππππ=β .08
β .09100
A survey claims that 9 out of 10 doctors recommend aspirin for their patients with headaches. To test this claim, a random sample of 100 doctors is obtained. Of these 100 doctors, 82
indicate that they recommend aspirin. Is this claim accurate? Use alpha = 0.05
Sample Size:
π πππππππππ=β .08
β.0009
Letβs continue our calculations:
π πππππππππ=β .08.03
Letβs continue our calculations:
π πππππππππ=β2.67
Letβs continue our calculations:
π πππππππππ=β2.67
Letβs continue our calculations:
Now we have our z statistic.
Letβs go back to our distribution:
rarerare
95%
mean-1Ο +1Ο-2Ο +2Ο
Common
-1.96 +1.96
Letβs go back to our distribution: So, is this result rare or common?
rarerare
95%
mean-1Ο +1Ο-2Ο +2Ο
Common
-1.96 +1.96-2.67
Letβs go back to our distribution: So, is this result rare or common?
rarerare
95%
mean-1Ο +1Ο-2Ο +2Ο
Common
-1.96 +1.96
This is the Z-Statistic we
calculated
-2.67
Letβs go back to our distribution: So, is this result rare or common?
rarerare
95%
mean-1Ο +1Ο-2Ο +2Ο
Common
-1.96 +1.96-2.67
This is the Z β Critical
Looks like it is a rare event therefore we will reject the null hypothesis in favor of the alternative hypothesis:
Looks like it is a rare event therefore we will reject the null hypothesis in favor of the alternative hypothesis:
The proportion of a sample of 100 medical doctors who recommend aspirin for their patients with headaches IS statistically significantly different from the claim that 9 out of 10 doctors recommend aspirin for their patients with headaches.