FavorOpposeTotalStudent252139391Faculty10781188Administration434083Total402260662 Given
r=Number of rows in table=2,
c=Number of columns in table=3
α=Significance level=0.05
H0: attitudes regarding the parking policy are independent on the category of the respondent.
H1: attitudes regarding the parking policy are dependent on the category of the respondent.
The expected frequencies E are the product of the column and row total, divided by the table total
E11=nr1×c1=662402×391≈237.435
E12=nr1×c2=662402×188≈114.163
E13=nr1×c3=662402×83≈50.402
E21=nr2×c1=662260×391≈153.565
E22=nr2×c2=662260×188≈73.837
E23=nr2×c3=662260×83≈32.598The chi-square subtotals are the squared differences between the observed and expected frequencies, divided by the expected frequency.
X=∑E(O−E)2
=237.435(252−237.435)2+114.163(107−114.163)2+50.402(43−50.402)2+
+153.565(139−153.565)2+73.837(81−73.837)2+32.598(40−32.598)2≈
≈6.187The P-value is the probability of obtaining the value of the test statistic, or a value more extreme.
The P-value is the number (or interval) in the column title of the chi-square distribution table in the row
df=(r−1)(c−1)=(2−1)(3−1)=2:
0.025<P<0.05 If the P-value is less or equal to the significance level, then the null hypothesis is rejected:
P<0.05=α=>Reject H0 There is sufficient evidence to support the claim that the attitudes regarding the parking policy are dependent on the category of the respondent.
Answer: Attitudes regarding the parking policy depend on the category of the respondent.
Comments