In: Statistics and Probability
The accuracy of a census report on a city in southern California was questioned by some government officials. A random sample of 1215 people living in the city was used to check the report, and the results are shown below.
Ethnic Origin | Census Percent | Sample Result |
Black | 10% | 127 |
Asian | 3% | 46 |
Anglo | 38% | 475 |
Latino/Latina | 41% | 499 |
Native American | 6% | 58 |
All others | 2% | 10 |
Using a 1% level of significance, test the claim that the census distribution and the sample distribution agree.
(a) What is the level of significance?
State the null and alternate hypotheses.
H0: The distributions are the same.
H1: The distributions are different.
H0: The distributions are different.
H1: The distributions are the
same.
H0: The distributions are the same.
H1: The distributions are the same.
H0: The distributions are different.
H1: The distributions are different.
(b) Find the value of the chi-square statistic for the sample.
(Round the expected frequencies to at least three decimal places.
Round the test statistic to three decimal places.)
Are all the expected frequencies greater than 5?
Yes
No
What sampling distribution will you use?
chi-square
Student's t
binomial
normal
uniform
What are the degrees of freedom?
(c) Estimate the P-value of the sample test statistic.
P-value > 0.100
0.050 < P-value < 0.100
0.025 < P-value < 0.050
0.010 < P-value < 0.025
0.005 < P-value < 0.010
P-value < 0.005
(d) Based on your answers in parts (a) to (c), will you reject or
fail to reject the null hypothesis that the population fits the
specified distribution of categories?
Since the P-value > α, we fail to reject the null hypothesis.
Since the P-value > α, we reject the null hypothesis.
Since the P-value ≤ α, we reject the null hypothesis.
Since the P-value ≤ α, we fail to reject the null hypothesis.
(e) Interpret your conclusion in the context of the
application.
At the 1% level of significance, the evidence is sufficient to conclude that census distribution and the ethnic origin distribution of city residents are different.
At the 1% level of significance, the evidence is insufficient to conclude that census distribution and the ethnic origin distribution of city residents are different.
Solution:-
a)
State the hypotheses. The first step is to state the null hypothesis and an alternative hypothesis.
H0: The distributions are the same.
H1: The distributions are different.
Formulate an analysis plan. For this analysis, the significance level is 0.01. Using sample data, we will conduct a chi-square goodness of fit test of the null hypothesis.
Analyze sample data. Applying the chi-square goodness of fit test to sample data, we compute the degrees of freedom, the expected frequency counts, and the chi-square test statistic. Based on the chi-square statistic and the degrees of freedom, we determine the P-value.
DF = k - 1 = 6 - 1
D.F = 5
(Ei) = n * pi
b)
X2 =
26.871
where DF is the degrees of freedom, k is the number of levels of the categorical variable, n is the number of observations in the sample, Ei is the expected frequency count for level i, Oi is the observed frequency count for level i, and X2 is the chi-square test statistic.
The P-value is the probability that a chi-square statistic having 5 degrees of freedom is more extreme than 26.871.
We use the Chi-Square Distribution Calculator to find P(X2 > 26.871) = less than 0.0001.
Interpret results. Since the P-value (almost 0) is less than the significance level (0.01), we have to reject the null hypothesis.
c) P-value < 0.005.
d) Since the P-value ≤ α, we reject the null hypothesis.
e) At the 1% level of significance, the evidence is sufficient to conclude that census distribution and the ethnic origin distribution of city residents are different.