Tutorial Letter 003/0/2021: Statistical Inference I
Tutorial Letter 003/0/2021: Statistical Inference I
Statistical inference I
STA1502
Year module
Department of Statistics
university
Define tomorrow. of south africa
STUDY UNIT 2
2.1. Inference about the difference between two
population proportions
Comparing proportions from two independent populations is analogous to comparing means from
two independent populations.
The steps are:
Step 1
1. H0 : P1 P2 D 0 against H1 : P1 P2 6D 0
2. H0 : P1 P2 D 0 against H1 : P1 P2 > 0
3. H0 : P1 P2 D 0 against H1 : P1 P2 < 0
Step 2
X1
– PO1 D ; X 1 is the number of successes and n 1 is the size of sample 1.
n1
X2
– PO2 D ; X 2 is the number of successes and n 2 is the size of sample 2.
n2
Step 3
PO1 PO2
ZDq
1 1
PN 1 PN C
n1 n2
X1 C X2
PN D
n1 C n2
2
STA1502/003/0/2021
Step 4
The confidence interval for proportion
v
u
u PO1 1 PO1 PO2 1 PO2
t
PO1 PO2 Z C
2 n1 n2
v
u
u PO1 1 PO1 PO2 1 PO2
t
C
n1 n2
or s
1 1
PN 1 PN C
n1 n2
Step 5
The decision rule
Reject the null hypothesis H0 if the test statistic Z is greater than the critical value, otherwise
we do not reject H0 :
Reject the null hypothesis H0 if the p–value is less than (level of significance).
Reject the null hypothesis H0 if zero lies between the two confidence limits.
X
k 2
SST D n j XN j X
jD1
3
– SST: Sum squared error.
XN 1 C XN 2 C :::X k
XD is grand mean
n
or
X nj
k X
xi j
iD1 iD1
XD
n
n D n 1 C n 2 C ::: C n j
H1 : At least one population mean is different from the other population means
nj
k X
X 2
The SS Total D Xi j X :
jD1 iD1
SST
M ST D
k 1
where k 1 is the degrees of freedom for treatment k is the number of treatment or group.
Mean squares for error is
SS E
MSE D
n k
M ST
FD
MSE
4
STA1502/003/0/2021
M ST
Treatment k 1 SST M ST FD
MSE
Error n k SS E MSE
Total n 1 SSTotal
where M S E is an unbiased estimator of the common variance of the populations we are testing.
We will conclude that i and j differ if
XN j XN j > L S D
5
2.3.2 Bonferroni test
k .k 1/
The number of hypothesis to be tested is determined by C D where k is the number
2
of group or treatment.
XN i XN j
Ti j D s
1 1
MSE C
ni nj
t and t
I.n k/ I .n k/
2c 2c
k .k 1/
where c D
2
6
STA1502/003/0/2021
SST M ST
Treatment k 1 SST M ST D FD
k 1 MSE
SS B MSB
Block b 1 SS B MSB D FD
b 1 MSE
SS E
Error .k 1/ .b 1/ SS E MSE D
.k 1/ .b 1/
Total kb 1 SSTotal
X
k 2
SST D b XN X
jD1
X
k 2
SS B D b XN X
kD1
X
k X
k 2
SST otal D Xi j X
jD1 iD1