



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




To study multiple categorical variables among several sub-populations, we can use a completely randomized block design in order to estimate the proportions in each category and also to estimate the proportions in each sub-population. Here we are not assuming a stratified sample according to pre-specified sub-population sizes. We are assuming that the proportionate sizes of the sub-populations are unknown, and then we will use the data to estimate them. After the data is collected, the frequencies are sorted into a two-way table.
Smoking among French men. Here is a two-way table of the level of education and the smoking status of a random sample of 459 French men age 20 to 60 years.
Smoking Status Education Level Nonsmoker ( N ) Former ( F ) Moderate ( M ) Heavy ( H ) Primary ( Pr ) 56 54 41 36
Secondary ( S ) 37 43 27 32 University ( U ) 53 28 36 16
(a) Collect the totals:
Smoking Status Education N F M H Pr 56 54 41 36 187 S^37 43 27 32 U 53 28 36 16 133 146 125 104 84 459
(b) Among French men age 20 to 60 years, what are estimates for the proportion who
(i) only finished primary school? P ( Pr ) ≈
or 40.74%
(ii) only finished secondary school? P ( S ) ≈
or 30.28%
(iii) had university education? P ( U ) ≈
or 28.98%
These proportions are the marginal distribution of education status.
Note : There are really only two separate proportions being estimated here, because once any two are determined, then the third automatically follows.
(c) Among French men age 20 to 60 years, what are e stimates for the proportion who
(i) are nonsmokers? (ii) are former smokers?
or 31.81% P ( F ) ≈
or 27.233%
(iii) are moderate smokers? (iv) are heavy smokers?
or 22.658% P ( H ) ≈
or 18.3%
These proportions are the marginal distribution of smoking status.
Note : There are really only three separate proportions being estimated here, because once any three are determined, then the fourth automatically follows.
data, and we are estimating (3 − 1) + (4 − 1) = 5 proportions from the data.
(d) Among French men age 20 to 60 years, what are estimates for the proportion who
(i) have university education and are heavy smokers?
or about 3.5%
(ii) have only primary education and are nonsmokers?
P ( Pr ∩ N ) ≈
or about 12.2%
By dividing any of the original 12 bin frequencies by the sample size 459 as above, we obtain one of the values of the joint distribution of education status and smoking status.
Question. Does it appear that the proportions of nonsmokers are the same regardless of education level? What about the proportions of former smokers? Does it appear that the proportions of moderate and heavy smokers are the same regardless of education level?
The null hypothesis of the Pearson Chi-Square Test is that the proportions of each type of smoker is the same regardless of education level. If they were all the same, then they could be estimated by the marginal distribution of smokers from the totals:
Nonsmoker Former Moderate Heavy P ( N ) ≈ 31.81% P ( F ) ≈ 27.233% P ( M ) ≈ 22.658% P ( H ) ≈18.3%
Do the proportions from each education level seem to match up with these four values for each category of smoker?
The Chi-Square Test
To test the null hypothesis that the two traits are independent; i.e., that the same proportions of each category exist regardless of the sun-population, we use a Pearson goodness of fit test.
In general, there are m row categories and n column categories that give m × n bins. But we are estimating ( m − 1) + ( n − 1) = m + n − 2 parameters from the data. So the degrees of freedom of the associated chi-square curve is
m × n − 1 − ( m + n − 2) = mn − m − n + 1 = ( m − 1) × ( n − 1)
Expected Numbers Per Cell
The expected values in the 12 bins are simply the product of the two marginal proportions with the sample size. For example, the expected number of primary
educated nonsmokers is 459 ×
Smoking Status Education Nonsmoker Former Moderate Heavy Primary (^459) ×^146 459
×
187 459
Secondary (^459) × 104 459
×
139 459
University 133
459 146 459
Calculator Command
The TI-83/84 have a built-in^2 –Test feature (item C in the STAT TESTS menu) that will compute the expected counts and P -value for data in a two-way table. First, enter the original data (excluding the totals) into matrix [A] in the MATRX EDIT screen.
Press MATRX , scroll right to EDIT , and press 1. Enter the dimensions for matrix [A] as 3× 4, then enter the data into the matrix.
Next, press STAT , scroll right to TESTS , scroll down to^2 –Test and press ENTER (or press ALPHA C ). For Observed , enter the matrix that contains the data. For instance, to enter matrix [A] , press MATRX then press 1. To enter matrix [E] for Expected , press MATRX and then press 5. Press ENTER on Calculate and compare matrix [E] with matrix [A].
Matrix [E] shows the cell counts that would be expected from this random sample if the proportions of each type of smoker were the same for each education level. From the last row of matrix [E] , we see that the expected cell counts for each smoking status among French men with a university education are 42.305, 36.22, 30.135, and 24.34, respectively, compared to the actual frequencies of 53, 28, 36, and 16.
Null hypothesis H 0 : Smoking status is independent of education level (i.e., the proportions of each smoking status are the same regardless of education level.)
But with the low P -value of 0.03844, we have significant evidence to reject H 0.
That is, smoking status is dependent on education level. In other words, some proportions of smoking status are different for some education levels.
Smoking Status Education N F M H Pr 0.2995 0.288 0.2193 0.1925 1 S 0.2662^ 0.3094^ 0.1942^ 0.2302^1 U 0.3985 0.2105 0.2707 0.1203 1
For example, secondary-educated are more likely to be former smokers than university-educated (30.94% to 21.05%), and less likely to be moderate smokers (19.42% to 27.07%)