Docsity

Statistics Discussion: Paired Samples and Categorical Data, Study notes of Statistics

Toggle sidebar
bg1
STAT371 DISCUSSION 10 November 10 , 2002
1. Comparison of Paired Samples
In a paired design, the observations (Y1, Y2) occur in pairs (not inde-
pendent). Instead of considering Y1and Y2independently, we consider
the DIFFERENCE d, defined as d=Y1−Y2.
•Relationship between sample means and population means:
¯
d= ¯y1−¯y2
µd=µ1−µ2
•Standard error of ¯
dis
SE¯
d=sd
√nd
•tTest
H0:µd= 0
ts=¯
d−0
SE¯
d
•(1 −α) Confidence Interval for µdis
¯
d±tα
2SE¯
d
e.g., If α= 10%, then 90% confidence interval of µdis ¯
d±t0.05SE ¯
d
2. Analysis of Categorical Data
•The chi-square goodness-of-fit test
H0: Pr{categorical 1}=p1,Pr{categorical 2}=p2, ...
HA: At least one of the probabilities specified in H0is incorrect
Chi-square Statistics is
χ2
s=X(O−E)2
E
1
pf2

Partial preview of the text

Download Statistics Discussion: Paired Samples and Categorical Data and more Study notes Statistics in PDF only on Docsity!

STAT371 DISCUSSION 10 November 10 , 2002

  1. Comparison of Paired Samples In a paired design, the observations (Y 1 , Y 2 ) occur in pairs (not inde- pendent). Instead of considering Y 1 and Y 2 independently, we consider the DIFFERENCE d, defined as d = Y 1 − Y 2. - Relationship between sample means and population means:

d¯ = ¯y 1 − y¯ 2

μd = μ 1 − μ 2

  • Standard error of d¯ is SE (^) d¯ =

sd √ nd

  • t Test H 0 : μd = 0

ts =

d¯ − 0 SE (^) d¯

  • (1 − α) Confidence Interval for μd is

d¯ ± tα 2 SE^ d¯

e.g., If α = 10%, then 90% confidence interval of μd is d¯ ± t 0. 05 SE (^) d¯

  1. Analysis of Categorical Data
    • The chi-square goodness-of-fit test

H 0 : Pr{categorical 1} = p 1 , Pr{categorical 2} = p 2 , ...

HA: At least one of the probabilities specified in H 0 is incorrect Chi-square Statistics is

χ^2 s =

∑ (O − E)^2

E

where the summation is over all the categories. O represents the observed frequency of the category and E represents the expected frequency. For categorial i, E = n × pi, where n is the total num- ber of observations: n =

∑ O.

Under H 0 , if the sample size is large enough, the distribution of χ^2 s can be approximated by χ^2 distribution with degree of freedom as df = (number of categories) − 1

  • The chi-square test for the 2×2 contingency table

H 0 : p 1 = p 2

The Chi-squate statistics is

χ^2 s =

∑ (O − E)^2

E

where the sum is taken over all four cells in the contingency ta- ble. O represents the observed frequency and E represents the correspondint expected frequency according to H 0 , and

E =

(Row total) × (Column total) Grand total

The degree of freedom is

df = 1