\(

\begin{array}{c|lcr}

\text{Age} & \text{None} & \text{Minor} & \text{Major} \\

\hline

\text{under} 18 &67 & 10 & 5 \\

18-25 & 42 & 6 & 5 \\

26-40 & 75 &8 & 4 \\

40-65 &56 &4 & 6\\

65+ &57 &15 &1 \\

\end{array}

\)

Do a chi-squared hypothesis test of homogeneity using `R `to see if there is difference in distributions based on age and draw a column wise normal qqplot of these data by age.

I used the function "chisq.test" but do not understanding how does it interpret whether there is difference in distributions based on age ?

Also If i was asked to check the independence, i would use the same function "chisq.test". Am i wrong to use the function "chisq.test" for chi-squared hypothesis test of "homogeneity"?